Fix fuer Bug 308: Die Ersetzung darf natuerlich nicht die gequoteten Werte fuer die...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 2 Mar 2006 10:40:47 +0000 (10:40 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Thu, 2 Mar 2006 10:40:47 +0000 (10:40 +0000)
bin/mozilla/ap.pl

index 9fa038f..137120d 100644 (file)
@@ -540,7 +540,7 @@ $jsscript
     $selectAP_amount = $selectAP_amount_unquoted;
     $re_amount = quotemeta($form->{"AP_amount_$i"});
     $selectAP_amount =~
-      s/option value=\"${re_amount}\"/option value=\"${re_amount}\" 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/;