Remove all unnecessary usage of SUPER from Assets

This commit is contained in:
Colin Kuskie 2011-12-07 08:26:08 -08:00
parent c2baef0bde
commit 5f9f1e6dec
46 changed files with 175 additions and 171 deletions

View file

@ -598,13 +598,13 @@ Extent the base class to clean out any items using this Sku in all Carts.
=cut
sub purge {
override purge => sub {
my $self = shift;
my $assetId = $self->getId;
my $success = $self->SUPER::purge;
my $success = super();
return $success unless $success;
$self->session->db->write('delete from cartItem where assetId=?',[$assetId]);
}
};
#-------------------------------------------------------------------