]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/io.pl
Beim "Erneuern" den vorher eingestellten Drucker auch weiterhin eingestellt lassen.
[mfinanz.git] / bin / mozilla / io.pl
index 4a094d2c1ad935ee64dcfafc0dbb0df05f90c4a8..afcdb66727a12aab7e39643f69d6689838ced7da 100644 (file)
@@ -1602,11 +1602,12 @@ sub print_options {
   }
 
   if (scalar(keys (%{ $form->{printers} })) !=0) {
-
-    $printer_select = qq|<select name=printer_id>
+    my $selected = !$form->{"printer_id"} ? "selected" : "";
+    $printer_select = qq|<select name=printer_id $selected>
                   <option value=""></option>|;
     foreach $item (@{ $form->{printers} }) {
-      $printer_select .= qq|<option value="$item->{id}">$item->{printer_description}</option>|;
+      $selected = $item->{"id"} == $form->{"printer_id"} ? "selected" : "";
+      $printer_select .= qq|<option value="$item->{id}" $selected>$item->{printer_description}</option>|;
     }
   }