Revision 9894f4ef
Von Moritz Bunkus vor mehr als 15 Jahren hinzugefügt
SL/IC.pm | ||
---|---|---|
482 | 482 |
) { |
483 | 483 |
#$klass = $form->parse_amount($myconfig, $form->{"klass_$i"}); |
484 | 484 |
$price = $form->parse_amount($myconfig, $form->{"price_$i"}); |
485 |
$pricegroup_id = |
|
486 |
$form->parse_amount($myconfig, $form->{"pricegroup_id_$i"}); |
|
487 | 485 |
$query = qq|INSERT INTO prices (parts_id, pricegroup_id, price) | . |
488 | 486 |
qq|VALUES(?, ?, ?)|; |
489 |
@values = (conv_i($form->{id}), conv_i($pricegroup_id), $price);
|
|
487 |
@values = (conv_i($form->{id}), conv_i($form->{"pricegroup_id_$i"}), $price);
|
|
490 | 488 |
do_query($form, $dbh, $query, @values); |
491 | 489 |
} |
492 | 490 |
} |
Auch abrufbar als: Unified diff
Datenbank-IDs in Formularen nicht durch "format_amount" jagen, sondern 1:1 speichern.