add story manager and survey, adding some error messages for silent problems

This commit is contained in:
Doug Bell 2011-04-25 19:28:54 -05:00
parent be33a59e90
commit de8c45b841
2 changed files with 194 additions and 3 deletions

View file

@ -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;
}