InsideOrder: remove item fix

This commit is contained in:
2025-11-20 16:49:02 +01:00
parent 0caa2351d8
commit 0a4745366b
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ else if ($_REQUEST['isDuplicate']=="true") {
$row = []; $row = [];
$row['id'] = create_guid(); $row['id'] = create_guid();
$row['product_component'] = 1; $row['product_component'] = 1;
$tmp = explode('|',$p); $row['product_product_id'] = $tmp[0];
$row['product_id'] = $c['ecmcomponent_id']; $row['product_id'] = $c['ecmcomponent_id'];
$row['position'] = $position; $row['position'] = $position;
$position++; $position++;

View File

@@ -196,7 +196,7 @@ function deleteRow(index) {
var error = false; // hope :) var error = false; // hope :)
var id = $("#product_id_" + index).val(); var id = $("#product_id_" + index).val();
var howmany = 1; var howmany = 1;
for (var row = 0; row != count; row++) { for (var row = index+1; row != count; row++) {
comp_id = $("#product_product_id_" + row).val(); comp_id = $("#product_product_id_" + row).val();
if (comp_id == id) howmany++; if (comp_id == id) howmany++;
} }