conversion of Product from Wobjects to Skus with variants is done

This commit is contained in:
Colin Kuskie 2008-05-04 04:32:58 +00:00
parent 6ad6cd3e5e
commit 9d2b810a05
3 changed files with 30 additions and 29 deletions

View file

@ -225,8 +225,13 @@ sub getAllCollateral {
my $tableName = shift;
return $self->{_collateral}->{$tableName} if exists $self->{_collateral}->{$tableName};
my $json = $self->get($tableName);
return [] unless $json;
my $table = from_json($json);
my $table;
if ($json) {
$table = from_json($json);
}
else {
$table = [];
}
$self->{_collateral}->{$tableName} = $table;
return $table;
}