Commit e6f2d09b by Alexis Aoun

refactor

parent 2e14ec78
Pipeline #1275 passed with stage
in 1 minute 26 seconds
...@@ -865,8 +865,7 @@ function editProductInfo (productToEdit, value = null, batch = false) { ...@@ -865,8 +865,7 @@ function editProductInfo (productToEdit, value = null, batch = false) {
// If 'value' parameter not set, get value from edition input // If 'value' parameter not set, get value from edition input
if (value == null) { if (value == null) {
newValue = parseFloat(document.getElementById('edition_input').value.replace(',', '.')); newValue = parseFloat(document.getElementById('edition_input').value.replace(',', '.'));
if (!newValue.isFinite()) newValue = newValue.isFinite() ? newValue : 0;
newValue = 0;
} }
$.each(list_processed, function(i, e) { $.each(list_processed, function(i, e) {
......
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