[BUGFIX] Tooltips for items in groupfields are not moved
authorJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Mar 2012 06:57:47 +0000 (08:57 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Sun, 25 Mar 2012 06:59:52 +0000 (08:59 +0200)
In groupfields the title attribute of options must also be handled
when moving items.

Change-Id: I5ef76f6648a3e62140ef8984dd7a8b1e8de9bcd8
Fixes: #35176
Releases: 6.0, 4.7, 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/9862
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
t3lib/class.t3lib_tceforms.php

index fab0aac..061dd3d 100644 (file)
@@ -5709,8 +5709,8 @@ class t3lib_TCEforms {
        /**
         * Used to connect the db/file browser with this document and the formfields on it!
         *
-        * @param       string          Form object reference (including "document.")
-        * @return      string          JavaScript functions/code (NOT contained in a <script>-element)
+        * @param string $formObj Form object reference (including "document.")
+        * @return string JavaScript functions/code (NOT contained in a <script>-element)
         */
        function dbFileCon($formObj = 'document.forms[0]') {
                        // @TODO: Export this to an own file, it is more static than dynamic JavaScript -- olly
@@ -5807,6 +5807,7 @@ class t3lib_TCEforms {
                                        var localArray_V = new Array();
                                        var localArray_L = new Array();
                                        var localArray_S = new Array();
+                                       var localArray_T = new Array();
                                        var fObjSel = formObj[fName+"_list"];
                                        var l=fObjSel.length;
                                        var c=0;
@@ -5817,6 +5818,7 @@ class t3lib_TCEforms {
                                                                        localArray_V[c]=fObjSel.options[a].value;
                                                                        localArray_L[c]=fObjSel.options[a].text;
                                                                        localArray_S[c]=1;
+                                                                       localArray_T[c] = fObjSel.options[a].title;
                                                                        c++;
                                                                }
                                                        }
@@ -5826,6 +5828,7 @@ class t3lib_TCEforms {
                                                                localArray_V[c]=fObjSel.options[a].value;
                                                                localArray_L[c]=fObjSel.options[a].text;
                                                                localArray_S[c]=0;
+                                                               localArray_T[c] = fObjSel.options[a].title;
                                                                c++;
                                                        }
                                                }
@@ -5835,6 +5838,7 @@ class t3lib_TCEforms {
                                                                        localArray_V[c]=fObjSel.options[a].value;
                                                                        localArray_L[c]=fObjSel.options[a].text;
                                                                        localArray_S[c]=1;
+                                                                       localArray_T[c] = fObjSel.options[a].title;
                                                                        c++;
                                                                }
                                                        }
@@ -5850,6 +5854,7 @@ class t3lib_TCEforms {
                                                                localArray_V[c]=fObjSel.options[a].value;
                                                                localArray_L[c]=fObjSel.options[a].text;
                                                                localArray_S[c]=0;
+                                                               localArray_T[c] = fObjSel.options[a].title;
                                                                c++;
 
                                                                        // Transfer any accumulated and reset:
@@ -5858,6 +5863,7 @@ class t3lib_TCEforms {
                                                                                localArray_V[c]=fObjSel.options[tA[aa]].value;
                                                                                localArray_L[c]=fObjSel.options[tA[aa]].text;
                                                                                localArray_S[c]=1;
+                                                                               localArray_T[c] = fObjSel.options[tA[aa]].title;
                                                                                c++;
                                                                        }
 
@@ -5875,6 +5881,7 @@ class t3lib_TCEforms {
                                                                localArray_V[c]=fObjSel.options[tA[aa]].value;
                                                                localArray_L[c]=fObjSel.options[tA[aa]].text;
                                                                localArray_S[c]=1;
+                                                               localArray_T[c] = fObjSel.options[tA[aa]].title;
                                                                c++;
                                                        }
                                                }
@@ -5891,6 +5898,7 @@ class t3lib_TCEforms {
                                                                localArray_V[c]=fObjSel.options[a].value;
                                                                localArray_L[c]=fObjSel.options[a].text;
                                                                localArray_S[c]=0;
+                                                               localArray_T[c] = fObjSel.options[a].title;
                                                                c--;
 
                                                                        // Transfer any accumulated and reset:
@@ -5899,6 +5907,7 @@ class t3lib_TCEforms {
                                                                                localArray_V[c]=fObjSel.options[tA[aa]].value;
                                                                                localArray_L[c]=fObjSel.options[tA[aa]].text;
                                                                                localArray_S[c]=1;
+                                                                               localArray_T[c] = fObjSel.options[tA[aa]].title;
                                                                                c--;
                                                                        }
 
@@ -5916,6 +5925,7 @@ class t3lib_TCEforms {
                                                                localArray_V[c]=fObjSel.options[tA[aa]].value;
                                                                localArray_L[c]=fObjSel.options[tA[aa]].text;
                                                                localArray_S[c]=1;
+                                                               localArray_T[c] = fObjSel.options[tA[aa]].title;
                                                                c--;
                                                        }
                                                }
@@ -5928,6 +5938,7 @@ class t3lib_TCEforms {
                                                fObjSel.options[a].value = localArray_V[a];
                                                fObjSel.options[a].text = localArray_L[a];
                                                fObjSel.options[a].selected = localArray_S[a];
+                                               fObjSel.options[a].title = localArray_T[a];
                                        }
                                        setHiddenFromList(fObjSel,formObj[fName]);