Bug fix: the JSON value for an enum should be the raw value, not its translated label.

SVN:trunk[3077]
This commit is contained in:
Denis Flaven
2014-02-06 09:22:35 +00:00
parent a6693d9535
commit bc0f48721b

View File

@@ -2365,6 +2365,15 @@ class AttributeEnum extends AttributeString
}
}
/**
* Helper to get a value that will be JSON encoded
* The operation is the opposite to FromJSONToValue
*/
public function GetForJSON($value)
{
return $value;
}
public function GetAllowedValues($aArgs = array(), $sContains = '')
{
$aRawValues = parent::GetAllowedValues($aArgs, $sContains);