Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect
that can be used by assets, operations and any other modules in WebGUI.
This commit is contained in:
parent
7fcb339605
commit
18a52b9aa2
6 changed files with 718 additions and 2 deletions
|
|
@ -2495,8 +2495,13 @@ sub update {
|
|||
}
|
||||
|
||||
# set the property
|
||||
if ($propertyDefinition->{serialize}) {
|
||||
$setPairs{$property} = JSON->new->canonical->encode($value);
|
||||
}
|
||||
else {
|
||||
$setPairs{$property} = $value;
|
||||
}
|
||||
$self->{_properties}{$property} = $value;
|
||||
$setPairs{$property} = $value;
|
||||
}
|
||||
|
||||
# if there's anything to update, then do so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue