Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 04f4f1cf

Von Moritz Bunkus vor fast 18 Jahren hinzugefügt

  • ID 04f4f1cf1d2b805cda8a24f8b0f7a56513bdecb0
  • Vorgänger 65682418
  • Nachfolger 079b834a

Steuerzonen können jetzt auch nachträglich geändert werden. Fix für Bugzilla #464. Zusätzlich etwas HTML-Quoting.

Unterschiede anzeigen:

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>

Auch abrufbar als: Unified diff