[BUGFIX] Edit wizard is working again 33/44133/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 17 Oct 2015 21:35:03 +0000 (23:35 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 18 Oct 2015 16:40:44 +0000 (18:40 +0200)
When editing a backend user and selecting a backend user group in the
select box, pressing the edit wizard icon resulted in the message:
"Please select one or more items in the list before you can edit."

With this patch the popup with the edit backend user group form appears.

Resolves: #70817
Releases: master
Change-Id: I55ddd790ecda9b23f9bb718a037d99112cf10e1a
Reviewed-on: http://review.typo3.org/44133
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.tbe_editor.js

index aa43851..8be306f 100644 (file)
@@ -276,7 +276,7 @@ var TBE_EDITOR = {
                return (theStr.substring(sPos+lengthOfDelim,ePos));
        },
        curSelected: function(theField) {
-               var fObjSel = TYPO3.jQuery('[data-formengine-input-name="' + theField + '"]').get(0);
+               var fObjSel = TYPO3.jQuery('[data-formengine-input-name="' + theField + '"]').get(1);
                var retVal="";
                if (fObjSel) {
                        if (fObjSel.type=='select-multiple' || fObjSel.type=='select-one') {