Serialize _to_ json in write.
This commit is contained in:
parent
d3f139d43c
commit
1363a8627a
1 changed files with 1 additions and 1 deletions
|
|
@ -2358,7 +2358,7 @@ sub write {
|
|||
my $tableName = $property->tableName;
|
||||
my $value = $self->$property_name;
|
||||
if ($property->does('WebGUI::Definition::Meta::Property::Serialize')) {
|
||||
$value = eval { JSON::from_json($value); } || '';
|
||||
$value = eval { JSON::to_json($value); } || '';
|
||||
}
|
||||
push @{ $data_by_table{$tableName}->{NAMES} }, $property_name;
|
||||
push @{ $data_by_table{$tableName}->{VALUES} }, $value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue