fix: Import Package does nothing when re-importing trashed package

This commit is contained in:
Doug Bell 2007-12-13 16:19:59 +00:00
parent 607fdd25a2
commit d0a97d0bff
3 changed files with 42 additions and 21 deletions

View file

@ -90,6 +90,18 @@ sub getAssetsInTrash {
return \@assets;
}
#----------------------------------------------------------------------------
=head2 isInTrash ( )
Returns true if the asset is in the trash.
=cut
sub isInTrash {
my $self = shift;
return $self->get("state") eq "trash";
}
#-------------------------------------------------------------------