X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/aa63ebae1c0a758ec438c594acb328b1f0e5e001..5b981bb6a5c:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 04b20129c..344f1f0bc 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -344,13 +344,12 @@ sub numtextrows { } sub dberror { - $main::lxdebug->enter_sub(); - my ($self, $msg) = @_; - $self->error("$msg\n" . $DBI::errstr); - - $main::lxdebug->leave_sub(); + die SL::X::DBError->new( + msg => $msg, + error => $DBI::errstr, + ); } sub isblank { @@ -733,7 +732,7 @@ sub redirect { $self->info($msg); } else { - SL::Helper::Flash::flash_later('info', $msg); + SL::Helper::Flash::flash_later('info', $msg) if $msg; $self->_store_redirect_info_in_session; print $::form->redirect_header($self->{callback}); } @@ -2562,8 +2561,6 @@ sub create_links { $arap = "ap"; } - $self->all_vc($myconfig, $table, $module); - # get last customers or vendors my ($query, $sth, $ref);