diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index e54f83741..bb403a9da 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -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);