Bug #77209

Adapt default RECORDS tables

Added by Tizian Schmidlin over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2016-07-22
Due date:
% Done:

100%

TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hello there,

fluid_styled_content comes shipped with some tables for shortcut records but it's nowhere checked that any of these tables are actually present. This is a huge problem because of the way the content is rendered in the RecodContentObject, since it uses enableFields and then may pass a table name that belongs to no loaded extension and then throws an exception that isn't caugt.

I suggest that the default value is adapted as follows:


styles.content {

      // FROM
     # cat=content/cShortcut/t0; type=string; label=List of accepted tables
     shortcut.tables = tt_content,tt_address,tt_news,tx_news_domain_model_news

     // TO
     # cat=content/cShortcut/t0; type=string; label=List of accepted tables
     shortcut.tables = tt_content
}

tt_content is the only table that is sure to be there all the time.

Extensions that want to have shortcuts should register normally by using:


styles.content.shortcut.tables := addToList(tablename)

Best Regards
Tizian

Associated revisions

Revision 17a59626 (diff)
Added by Georg Ringer about 3 years ago

[!!!][BUGFIX] Remove non core table list from fluid_styled_content

Remove all tables from the constants which are not part of the core.

Resolves: #77209
Releases: master
Change-Id: I3afaaf86115026437d14db2dd9891390a3632f61
Reviewed-on: https://review.typo3.org/49248
Reviewed-by: Benni Mack <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Bamboo TYPO3com <>
Reviewed-by: Oliver Hader <>
Tested-by: Oliver Hader <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>

History

#1 Updated by Georg Ringer about 3 years ago

  • Tracker changed from Feature to Bug
  • TYPO3 Version set to 7
  • Is Regression set to No

#2 Updated by Gerrit Code Review about 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49248

#3 Updated by Gerrit Code Review about 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49248

#4 Updated by Gerrit Code Review about 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/49248

#5 Updated by Georg Ringer about 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF