Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2b260ba4

Von Sven Schöling vor etwa 14 Jahren hinzugefügt

Dispatcher Mechanismus schlägt bei resubmit fehl.

Fix für Bug 1581.

Damit dispatcher funktioniert, muss zusätzlich zu action=dispatcher auch noch
die dispatchte action übergeben werden.

Unterschiede anzeigen:

bin/mozilla/oe.pl
foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation
request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) {
if ($::form->{"action_${action}"}) {
$::form->{dispatched_action} = $action;
call_sub($action);
return;
}
templates/webpages/oe/form_header.html
[%- USE T8 %]
[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
<body onLoad="[% onload %]">
<form method="post" name="oe" action="[% script %]">
......
<input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
<input type="hidden" name="follow_up_rowcount" value="1">
[%- IF resubmit %]
[%# in case of resubmits, restore enough information for dispatcher to work %]
[% L.hidden_tag('action_' _ dispatched_action, 1) %]
[%- END %]
<div class="listtop">[% title %]</div>

Auch abrufbar als: Unified diff