mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 16:48:42 +02:00
#869 REST JSON was not outputing case log attributes (implemented in a structured way) -retrofit in branch 2.0.2
SVN:2.0.2[3055]
This commit is contained in:
@@ -2061,6 +2061,25 @@ class AttributeCaseLog extends AttributeLongText
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to get a value that will be JSON encoded
|
||||
* The operation is the opposite to FromJSONToValue
|
||||
*/
|
||||
public function GetForJSON($value)
|
||||
{
|
||||
return $value->GetForJSON();
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper to form a value, given JSON decoded data
|
||||
* The operation is the opposite to GetForJSON
|
||||
*/
|
||||
public function FromJSONToValue($json)
|
||||
{
|
||||
// Passthrough: new text to append to the log
|
||||
return $json;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user