Bug #54843
closedSuggestElement: support for PAGE_TSCONFIG_*-values in addWhere
100%
Description
- not limiting the entries in the selectbox but to limit it in the suggest wizard
- limiting the entries in the selectbox but no results in the suggest wizard (due to an replaced marker)
In there any reason why only THIS_UID and CURRENT_PID are replaced?
if (isset($config['addWhere'])) { $config['addWhere'] = strtr( ' ' . $config['addWhere'], array( '###THIS_UID###' => intval($uid), '###CURRENT_PID###' => intval($pageId), ) ); }
This would fix it:
if (isset($config['addWhere'])) { $config['addWhere'] = strtr(' ' . $config['addWhere'], array( '###THIS_UID###' => intval($uid), '###CURRENT_PID###' => intval($pageId), '###PAGE_TSCONFIG_ID###' => intval($TSconfig['TCEFORM.'][$table . '.'][$field . '.']['PAGE_TSCONFIG_ID']), '###PAGE_TSCONFIG_IDLIST###' => $GLOBALS['TYPO3_DB']->cleanIntList($TSconfig['TCEFORM.'][$table . '.'][$field . '.']['PAGE_TSCONFIG_IDLIST']), '###PAGE_TSCONFIG_STR###' => $GLOBALS['TYPO3_DB']->quoteStr($TSconfig['TCEFORM.'][$table . '.'][$field . '.']['PAGE_TSCONFIG_STR'], $fieldConfig['foreign_table']), ) ); }
Updated by Wouter Wolters almost 11 years ago
I see you have already a solution, can you come up with a patch?
For information how to contribute: http://wiki.typo3.org/CWT
Updated by Gerrit Code Review almost 11 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/26695
Updated by Gerrit Code Review almost 11 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/26695
Updated by Markus Klein over 10 years ago
- Complexity changed from no-brainer to easy
Is this really a feature? I tend to call it a bugfix.
Updated by Gerrit Code Review over 10 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/26695
Updated by Gerrit Code Review over 10 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26695
Updated by Gerrit Code Review over 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26695
Updated by Gerrit Code Review over 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26695
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31465
Updated by Julian Hofmann over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ba4b915fdcacae2d300a6b81e6cfc54da5177eb2.