Explorar o código

Make sure that the generated form field's IDs are valid ones.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4602 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=8) %!d(string=hai) anos
pai
achega
01904026f6
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

@@ -531,7 +531,7 @@ EOF
 	
 	public function GetFieldId($sCode)
 	{
-		return $this->GetPrefix().'attr_'.$sCode;
+		return $this->GetPrefix().'attr_'.utils::GetSafeId($sCode.$this->GetSuffix());
 	}
 	
 	public function GetFieldName($sCode)