Json Serialization Bug
fixed json serialization bug introduced on former commit Change-Id: I5120dc11d0b0e76c1529da1c420229c8e58d4495
This commit is contained in:
parent
665d690530
commit
d31eda7654
@ -136,7 +136,7 @@ abstract class AbstractSerializer implements IModelSerializer
|
||||
$new_values = array();
|
||||
foreach ($mappings as $attribute => $mapping) {
|
||||
$mapping = preg_split('/:/',$mapping);
|
||||
if(!in_array($mapping[0], $fields)) continue;
|
||||
if(count($fields) > 0 && !in_array($mapping[0], $fields)) continue;
|
||||
$value = call_user_func( array( $this->object, 'get'.$attribute ) );
|
||||
if(count($mapping) > 1)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user