Przeglądaj źródła

Fixed a regression introduced by the revision 3500: the default value is NEVER "forbidden"

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3502 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 lat temu
rodzic
commit
d962d02b29
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      application/forms.class.inc.php

+ 1 - 1
application/forms.class.inc.php

@@ -883,7 +883,7 @@ class DesignerTextField extends DesignerFormField
 	{
 		$aForbiddenValues = $aValues;
 		
-		$iDefaultKey = array_search($this->defaultValue, $this->aForbiddenValues);
+		$iDefaultKey = array_search($this->defaultValue, $aForbiddenValues);
 		if ($iDefaultKey !== false)
 		{
 			// The default (current) value is always allowed...