fix jsontable and use it for Calendar feeds
This commit is contained in:
parent
6cf68e59a2
commit
bbc756c852
4 changed files with 281 additions and 197 deletions
|
|
@ -2605,7 +2605,15 @@ sub update {
|
|||
|
||||
# set the property
|
||||
if ($propertyDefinition->{serialize}) {
|
||||
$setPairs{$property} = JSON->new->canonical->encode($value);
|
||||
# Only serialize references
|
||||
if ( ref $value ) {
|
||||
$setPairs{$property} = JSON->new->canonical->encode($value);
|
||||
}
|
||||
# Passing already serialized JSON string
|
||||
elsif ( $value ) {
|
||||
$setPairs{$property} = $value;
|
||||
$value = JSON->new->decode( $value ); # for setting in _properties, below
|
||||
}
|
||||
}
|
||||
else {
|
||||
$setPairs{$property} = $value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue