#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:
Romain Quetiez
2014-01-15 11:06:56 +00:00
parent a0497cf539
commit 6cc0bf5c5a
2 changed files with 78 additions and 0 deletions

View File

@@ -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;
}
}
/**