Revision 04f4f1cf
Von Moritz Bunkus vor fast 18 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
539 | 539 |
foreach $item (@{ $form->{TAXZONE} }) { |
540 | 540 |
if ($item->{id} == $form->{taxzone_id}) { |
541 | 541 |
$form->{selecttaxzone} .= |
542 |
"<option value=$item->{id} selected>$item->{description}</option>"; |
|
542 |
"<option value=$item->{id} selected>" . H($item->{description}) . |
|
543 |
"</option>"; |
|
543 | 544 |
} else { |
544 | 545 |
$form->{selecttaxzone} .= |
545 |
"<option value=$item->{id}>$item->{description}</option>";
|
|
546 |
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
|
|
546 | 547 |
} |
547 | 548 |
|
548 | 549 |
} |
549 | 550 |
} else { |
550 | 551 |
$form->{selecttaxzone} =~ s/ selected//g; |
551 | 552 |
if ($form->{taxzone_id} ne "") { |
552 |
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/;
|
|
553 |
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}>/value=$form->{taxzone_id} selected>/;
|
|
553 | 554 |
} |
554 | 555 |
} |
555 | 556 |
|
556 |
if ($form->{rowcount} >0) { |
|
557 |
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/; |
|
558 |
$form->{selecttaxzone} = $&; |
|
559 |
} |
|
560 |
|
|
561 |
|
|
562 | 557 |
$taxzone = qq| |
563 | 558 |
<tr> |
564 | 559 |
<th align=right>| . $locale->text('Steuersatz') . qq|</th> |
Auch abrufbar als: Unified diff
Steuerzonen können jetzt auch nachträglich geändert werden. Fix für Bugzilla #464. Zusätzlich etwas HTML-Quoting.