Bug #52919
closedsuggest wizard doesnt respect "uniqueness" in TCA type "select"
0%
Description
if i'am using the "select" type in TCA with an m:n relation (double select box), i can only select each item once, this is the expected behaviour.
in combination with the "suggest wizard" i'am able to select an item already in the selected list, cause it seems there isnt any restriction for the wizard to not add already selected items.
Is this a bug or am i missing something in the configuration?
The TCA of the field:
'questions' => array( 'exclude' => 0, 'label' => 'LLL:EXT:tnm_quiz/Resources/Private/Language/locallang_db.xml:tx_tnmquiz_domain_model_questionnaire.questions', 'config' => array( 'type' => 'select', 'foreign_table' => 'tx_tnmquiz_domain_model_question', 'MM' => 'tx_tnmquiz_questionnaire_question_mm', 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'wizards' => array( '_PADDING' => 1, '_VERTICAL' => 1, 'edit' => array( 'type' => 'popup', 'title' => 'Edit', 'script' => 'wizard_edit.php', 'icon' => 'edit2.gif', 'popup_onlyOpenIfSelected' => 1, 'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1', ), 'add' => Array( 'type' => 'script', 'title' => 'Create new', 'icon' => 'add.gif', 'params' => array( 'table' => 'tx_tnmquiz_domain_model_question', 'pid' => '###CURRENT_PID###', 'setValue' => 'prepend' ), 'script' => 'wizard_add.php', ), 'suggest' => array( 'type' => 'suggest' ), ), ), ),
Example:
It isnt a big problem in the given example, but there are cases with more than 50 questions .. and manually filter out duplicate items will be very strange
Updated by Markus Klein about 10 years ago
- Status changed from New to Accepted
- Target version changed from 4.7.15 to next-patchlevel
Can you provide a sample extension for this bug? Would be really helpful and saves us a lot of time to creating the testing environment.
Updated by Mathias Schreiber almost 10 years ago
- Target version changed from next-patchlevel to 7.4 (Backend)
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Benni Mack about 9 years ago
- Target version changed from 7.5 to 7 LTS
Updated by Mathias Schreiber about 9 years ago
- Target version changed from 7 LTS to 8 LTS
Updated by Benni Mack over 7 years ago
- Target version changed from 8 LTS to Candidate for patchlevel
Updated by Christian Kuhn about 6 years ago
- Status changed from Accepted to Closed
since v8, suggest wizard is for type=group only, so a setup like this should not be used any longer.