Explorar o código

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 %!s(int64=10) %!d(string=hai) anos
pai
achega
d962d02b29
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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...