add story manager and survey, adding some error messages for silent problems
This commit is contained in:
parent
be33a59e90
commit
de8c45b841
2 changed files with 194 additions and 3 deletions
|
|
@ -73,6 +73,13 @@ sub addChild {
|
|||
# Check for valid parentage using validParent on child's class
|
||||
WebGUI::Asset->loadModule($properties->{className});
|
||||
if (! $properties->{className}->validParent($session, $self)) {
|
||||
$session->log->error(
|
||||
sprintf 'Cannot add %s to %s (URL: %s)(ID: %s)',
|
||||
$properties->{className},
|
||||
$self->className,
|
||||
$self->url,
|
||||
$self->getId,
|
||||
);
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue