newByDynamicClass changed to newById
This commit is contained in:
parent
0fd922daed
commit
49bd7f5032
41 changed files with 94 additions and 94 deletions
|
|
@ -174,7 +174,7 @@ Returns an instanciated WebGUI::Asset::Sku object for this cart item.
|
|||
sub getSku {
|
||||
my ($self) = @_;
|
||||
my $asset = '';
|
||||
$asset = WebGUI::Asset->newByDynamicClass($self->cart->session, $self->get("assetId"));
|
||||
$asset = WebGUI::Asset->newById($self->cart->session, $self->get("assetId"));
|
||||
$asset->applyOptions($self->get("options")) if $asset;
|
||||
return $asset;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ Returns an instanciated WebGUI::Asset::Sku object for this item.
|
|||
|
||||
sub getSku {
|
||||
my ($self) = @_;
|
||||
my $asset = WebGUI::Asset->newByDynamicClass($self->transaction->session, $self->get("assetId"));
|
||||
my $asset = WebGUI::Asset->newById($self->transaction->session, $self->get("assetId"));
|
||||
if (defined $asset) {
|
||||
$asset->applyOptions($self->get("options"));
|
||||
return $asset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue