Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 755822a8

Von Moritz Bunkus vor fast 17 Jahren hinzugefügt

  • ID 755822a826214b0981138e155c2c33f46ee21dec
  • Vorgänger a034cc76
  • Nachfolger d89c9d22

Doppeltes Umwandeln von " in " verhindern.

Unterschiede anzeigen:

bin/mozilla/io.pl
239 239
    $linetotal      = $form->round_amount(($form->{"sellprice_$i"} - $discount) / $price_factor, $decimalplaces);
240 240
    $linetotal      = $form->round_amount($linetotal * $form->{"qty_$i"}, 2);
241 241

  
242
    # convert " to "
243
    map { $form->{"${_}_$i"} =~ s/\"/"/g } qw(partnumber description unit unit_old);
244

  
245 242
    $column_data{runningnumber} = $cgi->textfield(-name => "runningnumber_$i", -size => 5,  -value => $i);    # HuT
246 243
    $column_data{partnumber}    = $cgi->textfield(-name => "partnumber_$i",    -size => 12, -value => $form->{"partnumber_$i"});
247 244
    $column_data{description} = ((($rows = $form->numtextrows($form->{"description_$i"}, 30, 6)) > 1) # if description is too large, use a textbox instead
bin/mozilla/oe.pl
134 134
sub edit {
135 135
  $lxdebug->enter_sub();
136 136

  
137
  $form->{"Watchdog::description_3"} = 1;
137 138
  check_oe_access();
138 139

  
139 140
  # show history button
......
319 320
    $form->{"discount_$i"}  = $form->format_amount(\%myconfig, $form->{"discount_$i"} * ($form->{id} ? 100 : 1));
320 321
    $form->{"sellprice_$i"} = $form->format_amount(\%myconfig, $form->{"sellprice_$i"});
321 322
    $form->{"qty_$i"}       = $form->format_amount(\%myconfig, $form->{"qty_$i"});
322
    map { $form->{"${_}_$i"} =~ s/\"/"/g } qw(partnumber description unit);
323 323
  }
324 324

  
325 325
  $lxdebug->leave_sub();

Auch abrufbar als: Unified diff