mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Do NOT localize finalclass values in REST/JSON.
SVN:trunk[3805]
This commit is contained in:
@@ -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 != '')
|
||||
|
||||
Reference in New Issue
Block a user