conversion of Product from Wobjects to Skus with variants is done
This commit is contained in:
parent
6ad6cd3e5e
commit
9d2b810a05
3 changed files with 30 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue