fix: Import Package does nothing when re-importing trashed package
This commit is contained in:
parent
607fdd25a2
commit
d0a97d0bff
3 changed files with 42 additions and 21 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue