Project

General

Profile

Actions

Bug #52919

closed

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

Added by Michael Münch about 11 years ago. Updated about 6 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 #1

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.

Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from next-patchlevel to 7.4 (Backend)
Actions #3

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #5

Updated by Mathias Schreiber about 9 years ago

  • Target version changed from 7 LTS to 8 LTS
Actions #6

Updated by Benni Mack over 7 years ago

  • Target version changed from 8 LTS to Candidate for patchlevel
Actions #7

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.

Actions

Also available in: Atom PDF