mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Handling the old weirdly-formatted data wasn't quite working.
This commit is contained in:
parent
31dde20a2b
commit
3225605ef3
|
@ -30,7 +30,7 @@ class ActionlogsTransformer
|
|||
// {"old":null,"new":{"value":"1579490695972","_snipeit_new_field_2":2,"_snipeit_new_field_3":"Monday, 20 January 2020 2:24:55 PM"}}
|
||||
// so we have to walk down that next level
|
||||
if(is_object($value) && isset($value->value)) {
|
||||
return clean_field($value->value);
|
||||
return $this->clean_field($value->value);
|
||||
}
|
||||
return is_scalar($value) || is_null($value) ? e($value) : e(json_encode($value));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue