No selection for TCEForms groups with max. one option needed
authorBenni Mack <benni.mack@typo3.org>
Tue, 9 Oct 2007 08:02:11 +0000 (08:02 +0000)
committerBenni Mack <benni.mack@typo3.org>
Tue, 9 Oct 2007 08:02:11 +0000 (08:02 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@2546 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index ea9ec3d..c114d9f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-09  Benjamin Mack  <mack@xnos.org>
+
+        * (tweak) No selection for TCEForms groups with max. one option needed
+
 2007-10-09  Dmitry Dulepov  <dmitry@typo3.org>
 
        * Added flag for Galician language
index 1504454..4aa1fa0 100755 (executable)
@@ -4903,7 +4903,7 @@ class t3lib_TCEforms      {
                                        var fObjSel = formObj[fName+"_list"];
                                        var l=fObjSel.length;
                                        var c=0;
-                                       if (type=="Remove" || type=="Top" || type=="Bottom")    {
+                                       if ((type=="Remove" && fObjSel.size > 1) || type=="Top" || type=="Bottom")      {
                                                if (type=="Top")        {
                                                        for (a=0;a<l;a++)       {
                                                                if (fObjSel.options[a].selected==1)     {