Revision a8459f49
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
914 | 914 |
my @do_ids = map { $form->{"trans_id_$_"} } grep { $form->{"multi_id_$_"} } (1..$form->{rowcount}); |
915 | 915 |
|
916 | 916 |
if (!scalar @do_ids) { |
917 |
$form->show_generic_error($locale->text('You have not selected any delivery order.'), 'back_button' => 1);
|
|
917 |
$form->show_generic_error($locale->text('You have not selected any delivery order.')); |
|
918 | 918 |
} |
919 | 919 |
|
920 | 920 |
map { delete $form->{$_} } grep { m/^(?:trans|multi)_id_\d+/ } keys %{ $form }; |
... | ... | |
1357 | 1357 |
my $locale = $main::locale; |
1358 | 1358 |
|
1359 | 1359 |
if ($form->{id} && DO->is_marked_as_delivered(id => $form->{id})) { |
1360 |
$form->show_generic_error($locale->text('The parts for this delivery order have already been transferred in.'), 'back_button' => 1);
|
|
1360 |
$form->show_generic_error($locale->text('The parts for this delivery order have already been transferred in.')); |
|
1361 | 1361 |
} |
1362 | 1362 |
|
1363 | 1363 |
save(no_redirect => 1); |
... | ... | |
1427 | 1427 |
my $locale = $main::locale; |
1428 | 1428 |
|
1429 | 1429 |
if ($form->{id} && DO->is_marked_as_delivered(id => $form->{id})) { |
1430 |
$form->show_generic_error($locale->text('The parts for this delivery order have already been transferred out.'), 'back_button' => 1);
|
|
1430 |
$form->show_generic_error($locale->text('The parts for this delivery order have already been transferred out.')); |
|
1431 | 1431 |
} |
1432 | 1432 |
|
1433 | 1433 |
save(no_redirect => 1); |
... | ... | |
1653 | 1653 |
my $base_unit_factor = $units->{ $part_info_map{$form->{"id_$i"}}->{unit} }->{factor} || 1; |
1654 | 1654 |
my $qty = $form->parse_amount(\%myconfig, $form->{"qty_$i"}) * $units->{$form->{"unit_$i"}}->{factor} / $base_unit_factor; |
1655 | 1655 |
|
1656 |
$form->show_generic_error($locale->text("Cannot transfer negative entries." ), 'back_button' => 1) if ($qty < 0);
|
|
1656 |
$form->show_generic_error($locale->text("Cannot transfer negative entries." )) if ($qty < 0); |
|
1657 | 1657 |
# if we do not want to transfer services and this part is a service, set qty to zero |
1658 | 1658 |
# ... and do not create a hash entry in %qty_parts below (will skip check for bins for the transfer == out case) |
1659 | 1659 |
# ... and push only a empty (undef) element to @all_requests (will skip check for bin_id and warehouse_id and will not alter the row) |
... | ... | |
1740 | 1740 |
} |
1741 | 1741 |
} else { |
1742 | 1742 |
#$main::lxdebug->message(0, 'Fehlertext: ' . $fehlertext); |
1743 |
$form->show_generic_error($locale->text("Cannot transfer. <br> Reason:<br>#1", $fehlertext ), 'back_button' => 1);
|
|
1743 |
$form->show_generic_error($locale->text("Cannot transfer. <br> Reason:<br>#1", $fehlertext )); |
|
1744 | 1744 |
} |
1745 | 1745 |
} |
1746 | 1746 |
} |
Auch abrufbar als: Unified diff
Form->show_generic_error: Parameter action, back_button entfernt
Der Funktion kann man eine spezifische Action mitgeben, damit ein Button
mit der Action anstelle des normalen Zurück-Buttons angezeigt wird. Es
gibt allerdings (schon lange?) keinen einzigen Aufruf mehr, der dieses
Feature »Action übergeben« nutzt.
Daher wird es hiermit entfernt.
Im Umkehrschluss gibt es keine Situation, wo der Zurück-Button nicht
angezeigt werden soll. Daher wird auch dieser Parameter entfernt.