Project

General

Profile

Actions

Bug #52919

closed

suggest wizard doesnt respect "uniqueness" in TCA type "select"

Added by Michael Münch over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Start date:
2013-10-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #55835: Suggest wizard does not work correctly in flexformsClosed2014-02-10

Actions
Actions

Also available in: Atom PDF