Fix potential JSON/UTF8 encoding issues in Asset/Sku/Product.pm
This commit is contained in:
parent
b02bc68215
commit
91317dfdd7
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ ok($session->id->valid($vid), 'a valid id was generated for the new collateral e
|
|||
|
||||
my $json;
|
||||
$json = $product->get('variantsJSON');
|
||||
my $jsonData = from_json($json);
|
||||
my $jsonData = decode_json($json);
|
||||
cmp_deeply(
|
||||
$jsonData,
|
||||
[ {a => 'aye', b => 'bee', vid => $vid } ],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue