git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3805 a333f486-631f-4898-b8df-5754b55c2be0
@@ -1938,7 +1938,16 @@ class AttributeFinalClass extends AttributeString
if (empty($sValue)) return '';
return MetaModel::GetName($sValue);
}
-
+ /**
+ * Helper to get a value that will be JSON encoded
+ * The operation is the opposite to FromJSONToValue
+ */
+ public function GetForJSON($value)
+ {
+ // JSON values are NOT localized
+ return $value;
+ }
+
public function GetAsCSV($value, $sSeparator = ',', $sTextQualifier = '"', $oHostObject = null, $bLocalize = true)
{
if ($bLocalize && $value != '')