Commit c9ba4b8d by Alexis Aoun

fix: correction d'un bug de reference entre objet

parent 13891319
...@@ -87,7 +87,7 @@ function select_product_from_bc(barcode) { ...@@ -87,7 +87,7 @@ function select_product_from_bc(barcode) {
if (found.data == null) { if (found.data == null) {
$.each(list_processed, function(i, e) { $.each(list_processed, function(i, e) {
if (e.product_id[0] == p.data[barcodes['keys']['id']]) { if (e.product_id[0] == p.data[barcodes['keys']['id']]) {
found.data = e; found.data = JSON.parse(JSON.stringify(e));
found.place = 'processed'; found.place = 'processed';
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment