Revision 6eb84397
Von Moritz Bunkus vor etwa 1 Jahr hinzugefügt
- ID 6eb843977077aabdf5f9e488916ab3ad0c58fed9
- Vorgänger 46282860
SL/Controller/Buchungsgruppen.pm | ||
---|---|---|
142 | 142 |
|
143 | 143 |
@errors = $self->config->validate; # check for description and inventory_accno_id |
144 | 144 |
|
145 |
if (@errors) { |
|
146 |
die "foo" . @errors . "\n"; |
|
147 |
}; |
|
145 |
return 0 if @errors; |
|
148 | 146 |
|
149 | 147 |
$self->config->save; |
150 | 148 |
|
... | ... | |
175 | 173 |
|
176 | 174 |
1; |
177 | 175 |
})) { |
178 |
die @errors ? join("\n", @errors) . "\n" : $db->error . "\n"; |
|
176 |
my $error = @errors ? join("\n", @errors) . "\n" : $db->error . "\n"; |
|
177 |
$::form->show_generic_error($error); |
|
179 | 178 |
# die with rollback of taxzone save if saving of any of the taxzone_charts fails |
180 | 179 |
# only show the $db->error if we haven't already identified the likely error ourselves |
181 | 180 |
} |
Auch abrufbar als: Unified diff
Buchungsgruppen ungültig setzen können