Project

General

Profile

Actions

Bug #69593

closed

Left multi select field loses selected items

Added by Georg Ringer about 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2015-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
js
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Given is a multi select field, e.g. usergroups in fe_users
and multiple records are assigned to the record
and an editor selects at least 2 items in the left select box
and moves the cursor,
no item is selected anymore.

in 6.2 an editor could select multiple records and move and remove those.

affected browsers: at least FF and chrome

Actions #1

Updated by Georg Ringer about 9 years ago

  • Description updated (diff)
Actions #2

Updated by Frank Nägler about 9 years ago

  • Sprint Focus set to Stabilization Sprint

The problem is located in FormEngineValidation.js at line 52:

        // Initialize input fields
        FormEngineValidation.initializeInputFields().promise().done(function () {
            // Bind to field changes
            $(document).on('change', FormEngineValidation.rulesSelector, function() {
                // we need to wait, because the update of the select fields needs some time
                window.setTimeout(function() {
                    FormEngineValidation.validate();
                }, 500);
                var $paletteField = $(this).closest('.t3js-formengine-palette-field');
                $paletteField.addClass('has-change');
            });

The setTiemout call calls the validate method which result in "de-select" the selected entries.

Actions #3

Updated by Mathias Brodala about 9 years ago

Confirmed, if $field.val(newValue); is commented out, the selection stays intact.

Actions #4

Updated by Georg Ringer about 9 years ago

  • Status changed from Accepted to Resolved

resolved in the meantime

Actions #5

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF