Revision b2945bf6
Von Sven Schöling vor mehr als 14 Jahren hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
367 | 367 |
if ($rows > 1) { |
368 | 368 |
|
369 | 369 |
select_item(); |
370 |
exit;
|
|
370 |
::end_of_request();
|
|
371 | 371 |
|
372 | 372 |
} else { |
373 | 373 |
|
... | ... | |
619 | 619 |
# if the name changed get new values |
620 | 620 |
if (check_name($form->{vc})) { |
621 | 621 |
update(); |
622 |
exit;
|
|
622 |
::end_of_request();
|
|
623 | 623 |
} |
624 | 624 |
|
625 | 625 |
$form->{id} = 0 if $form->{saveasnew}; |
... | ... | |
647 | 647 |
if(!$form->{print_and_save}) { |
648 | 648 |
set_headings("edit"); |
649 | 649 |
update(); |
650 |
exit;
|
|
650 |
::end_of_request();
|
|
651 | 651 |
} |
652 | 652 |
$main::lxdebug->leave_sub(); |
653 | 653 |
} |
... | ... | |
690 | 690 |
# /saving the history |
691 | 691 |
|
692 | 692 |
$form->info($locale->text('Delivery Order deleted!')); |
693 |
exit();
|
|
693 |
::end_of_request();
|
|
694 | 694 |
} |
695 | 695 |
|
696 | 696 |
$form->error($locale->text('Cannot delete delivery order!')); |
... | ... | |
1232 | 1232 |
update(); |
1233 | 1233 |
$main::lxdebug->leave_sub(); |
1234 | 1234 |
|
1235 |
exit 0;
|
|
1235 |
::end_of_request();
|
|
1236 | 1236 |
} |
1237 | 1237 |
} |
1238 | 1238 |
|
... | ... | |
1346 | 1346 |
update(); |
1347 | 1347 |
$main::lxdebug->leave_sub(); |
1348 | 1348 |
|
1349 |
exit 0;
|
|
1349 |
::end_of_request();
|
|
1350 | 1350 |
} |
1351 | 1351 |
} |
1352 | 1352 |
|
Auch abrufbar als: Unified diff
Aufrufe von 'exit' durch eigene Funktion '::end_of_request()' ersetzt.
Außerdem dafür gesorgt, dass Meldungen, die per
$form->show_generic_(error|information) ausgegeben werden, nicht
doppelt angezeigt werden.
Conflicts: