Fix potential JSON/UTF8 encoding issues in Asset/Sku/Product.pm

This commit is contained in:
Colin Kuskie 2008-07-08 21:23:45 +00:00
parent b02bc68215
commit 91317dfdd7
2 changed files with 3 additions and 3 deletions

View file

@ -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 } ],