change ErrorHandler to Log
This commit is contained in:
parent
d11cd6f4f7
commit
199c4e4960
90 changed files with 311 additions and 311 deletions
|
|
@ -112,12 +112,12 @@ sub new {
|
|||
delete $raw{fieldType};
|
||||
# Return the appropriate field object.
|
||||
if ($fieldType eq "") {
|
||||
$session->errorHandler->warn("Something is trying to create a dynamic field called ".$raw{name}.", but didn't pass in a field type.");
|
||||
$session->log->warn("Something is trying to create a dynamic field called ".$raw{name}.", but didn't pass in a field type.");
|
||||
$fieldType = "Text";
|
||||
}
|
||||
##No infinite loops, please
|
||||
elsif ($fieldType eq 'DynamicField') {
|
||||
$session->errorHandler->warn("Something is trying to create a DynamicField via DynamicField.");
|
||||
$session->log->warn("Something is trying to create a DynamicField via DynamicField.");
|
||||
$fieldType = "Text";
|
||||
}
|
||||
return WebGUI::Pluggable::instanciate("WebGUI::Form::".$fieldType, "new", [$session, \%raw]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue