Revision cff9b88d
Von Moritz Bunkus vor etwa 2 Jahren hinzugefügt
SL/Controller/Buchungsgruppen.pm | ||
---|---|---|
|
||
@errors = $self->config->validate; # check for description and inventory_accno_id
|
||
|
||
if (@errors) {
|
||
die "foo" . @errors . "\n";
|
||
};
|
||
return 0 if @errors;
|
||
|
||
$self->config->save;
|
||
|
||
... | ... | |
|
||
1;
|
||
})) {
|
||
die @errors ? join("\n", @errors) . "\n" : $db->error . "\n";
|
||
my $error = @errors ? join("\n", @errors) . "\n" : $db->error . "\n";
|
||
$::form->show_generic_error($error);
|
||
# die with rollback of taxzone save if saving of any of the taxzone_charts fails
|
||
# only show the $db->error if we haven't already identified the likely error ourselves
|
||
}
|
Auch abrufbar als: Unified diff
Buchungsgruppen ungültig setzen können