X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcp.pl;h=969f3c4053611e0119a9f80ba8f75678abc64d8f;hb=863eb4303398caba2ab429475a69e09601919150;hp=fb244b6309d418419196e813f2f83e9a71062050;hpb=b13baada237c1e9508ec7c8d29713a3fe2598eb9;p=kivitendo-erp.git diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index fb244b630..969f3c405 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -24,7 +24,8 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. #====================================================================== # # Payment module @@ -77,7 +78,7 @@ sub payment { # s.o. jb 12.10.2010 $form->{"$form->{vc}_id"} = $form->{"all_$form->{vc}"}->[0]->{id}; # hotfix for 2450. TODO remove legacy code and use L - map { $form->{"select$form->{vc}"} .= "\n" } + map { $form->{"select$form->{vc}"} .= "\n" } @{ $form->{"all_$form->{vc}"} }; } CP->paymentaccounts(\%myconfig, \%$form); @@ -148,6 +149,7 @@ sub form_header { # # offen: $form->{ARAP} kann raus? for my $item ($form->{vc}, "account", "currency", $form->{ARAP}) { + $form->{$item} = H($form->{$item}); $form->{"select$item"} =~ s/ selected//; $form->{"select$item"} =~ s/option value="\Q$form->{$item}\E">\Q$form->{$item}\E/option selected value="$form->{$item}">$form->{$item}/; } @@ -458,7 +460,7 @@ sub check_form { if ($form->{currency} ne $form->{oldcurrency}) { &update; - ::end_of_request(); + $::dispatcher->end_request; } $form->error($locale->text('Date missing!')) unless $form->{datepaid}; my $selected_check = 1;