]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/ap.pl
Fix fuer Bug 308: Die Ersetzung darf natuerlich nicht die gequoteten Werte fuer die...
[kivitendo-erp.git] / bin / mozilla / ap.pl
index fd86583ddd8eab1e6a2d55dd6973330ff8d50e3f..137120d595fd79b2533ea07facb61e4c37bbbe26 100644 (file)
@@ -538,8 +538,9 @@ $jsscript
       $form->format_amount(\%myconfig, $form->{"amount_$i"}, 2);
     $form->{"tax_$i"} = $form->format_amount(\%myconfig, $form->{"tax_$i"}, 2);
     $selectAP_amount = $selectAP_amount_unquoted;
+    $re_amount = quotemeta($form->{"AP_amount_$i"});
     $selectAP_amount =~
-      s/option value=\"$form->{"AP_amount_$i"}\"/option value=\"$form->{"AP_amount_$i"}\" selected/;
+      s/option value=\"${re_amount}\"/option value=\"$form->{"AP_amount_$i"}\" selected/;
     $tax          = $taxchart;
     $tax_selected = $form->{"taxchart_$i"};
     $tax =~ s/value=\"$tax_selected\"/value=\"$tax_selected\" selected/;