mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Do NOT localize finalclass values in REST/JSON.
SVN:2.2.0[3806]
This commit is contained in:
@@ -1938,6 +1938,15 @@ class AttributeFinalClass extends AttributeString
|
|||||||
if (empty($sValue)) return '';
|
if (empty($sValue)) return '';
|
||||||
return MetaModel::GetName($sValue);
|
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)
|
public function GetAsCSV($value, $sSeparator = ',', $sTextQualifier = '"', $oHostObject = null, $bLocalize = true)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user