View | Details | Raw Unified | Return to bug 14744
Collapse All | Expand All

(-)a/Koha/Template/Plugin/To.pm (-1 / +1 lines)
Lines 28-33 sub json { Link Here
28
28
29
    my $json = JSON->new->allow_nonref(1);
29
    my $json = JSON->new->allow_nonref(1);
30
    $json = $json->encode($value);
30
    $json = $json->encode($value);
31
    $json =~ s/'/'/g;
31
    $json =~ s/^"|"$//g; # Remove quotes around the strings
32
    $json =~ s/^"|"$//g; # Remove quotes around the strings
32
    return $json;
33
    return $json;
33
}
34
}
34
- 

Return to bug 14744