X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b13baada237c1e9508ec7c8d29713a3fe2598eb9..aae306cda6274d:/bin/mozilla/cp.pl diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index fb244b630..4fdfd5ee9 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); @@ -94,13 +95,6 @@ sub payment { map { $form->{selectaccount} .= "\n"; $form->{account} = "$_->{accno}--$_->{description}" if ($_->{accno} eq $accno_arap) } @{ $form->{PR}{"$form->{ARAP}_paid"} }; - # Braucht man das hier überhaupt? Erstmal auskommentieren .. jan 18.12.2010 - # map { - # $form->{"select$form->{ARAP}"} .= - # " # 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 +453,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;