Better info for Assets that require commit before adding children. Add link is always availiable now, an error message is displayed if you try to post a child to an uncommitted parent. Additionally a new method was added to AssetVersionion.pm to determine whether or not an asset has been committed.
This commit is contained in:
parent
0e80937c6b
commit
58f231c87b
9 changed files with 94 additions and 22 deletions
|
|
@ -301,6 +301,19 @@ sub getTagCount {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 hasBeenCommitted ( )
|
||||
|
||||
Returns whether or not this asset has been committed
|
||||
|
||||
=cut
|
||||
|
||||
sub hasBeenCommitted {
|
||||
my $self = shift;
|
||||
return $self->getTagCount > 1 || $self->get('status') ne "pending";
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 isLocked ( )
|
||||
|
||||
Returns a boolean indicating whether the asset is locked for editing by the versioning system.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue