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
|
|
@ -392,6 +392,26 @@ sub view {
|
|||
return $self->processTemplate($var, undef, $template);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 www_add ( )
|
||||
|
||||
Returns an error message if the collaboration system has not yet been posted.
|
||||
|
||||
=cut
|
||||
|
||||
sub www_add {
|
||||
my $self = shift;
|
||||
|
||||
#Check to see if the asset has been committed
|
||||
unless ($self->hasBeenCommitted ) {
|
||||
my $i18n = WebGUI::International->new($self->session,"Asset_WikiMaster");
|
||||
return $self->processStyle($i18n->get("asset not committed"));
|
||||
}
|
||||
return $self->SUPER::www_add( @_ );
|
||||
}
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_byKeyword {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue