Revision 04f4f1cf
Von Moritz Bunkus vor etwa 18 Jahren hinzugefügt
bin/mozilla/ir.pl | ||
---|---|---|
279 | 279 |
foreach $item (@{ $form->{TAXZONE} }) { |
280 | 280 |
if ($item->{id} == $form->{taxzone_id}) { |
281 | 281 |
$form->{selecttaxzone} .= |
282 |
"<option value=$item->{id} selected>$item->{description}</option>"; |
|
282 |
"<option value=$item->{id} selected>" . H($item->{description}) . |
|
283 |
"</option>"; |
|
283 | 284 |
} else { |
284 | 285 |
$form->{selecttaxzone} .= |
285 |
"<option value=$item->{id}>$item->{description}</option>";
|
|
286 |
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
|
|
286 | 287 |
} |
287 | 288 |
|
288 | 289 |
} |
... | ... | |
292 | 293 |
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/; |
293 | 294 |
} |
294 | 295 |
} |
295 |
if ($form->{rowcount} >1) { |
|
296 |
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/; |
|
297 |
$form->{selecttaxzone} = $&; |
|
298 |
} |
|
299 |
|
|
300 | 296 |
|
301 | 297 |
$taxzone = qq| |
302 | 298 |
<tr> |
bin/mozilla/is.pl | ||
---|---|---|
335 | 335 |
foreach $item (@{ $form->{TAXZONE} }) { |
336 | 336 |
if ($item->{id} == $form->{taxzone_id}) { |
337 | 337 |
$form->{selecttaxzone} .= |
338 |
"<option value=$item->{id} selected>$item->{description}</option>"; |
|
338 |
"<option value=$item->{id} selected>" . H($item->{description}) . |
|
339 |
"</option>"; |
|
339 | 340 |
} else { |
340 | 341 |
$form->{selecttaxzone} .= |
341 |
"<option value=$item->{id}>$item->{description}</option>";
|
|
342 |
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
|
|
342 | 343 |
} |
343 | 344 |
|
344 | 345 |
} |
... | ... | |
348 | 349 |
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/; |
349 | 350 |
} |
350 | 351 |
} |
351 |
if ($form->{rowcount} >0) { |
|
352 |
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/; |
|
353 |
$form->{selecttaxzone} = $&; |
|
354 |
} |
|
355 |
|
|
356 | 352 |
|
357 | 353 |
$taxzone = qq| |
358 | 354 |
<tr> |
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.