mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Simplified "checkboxUncheckedValue" handling
This commit is contained in:
@@ -65,7 +65,7 @@ $('.save-product-button').on('click', function(e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
var jsonData = $('#product-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
||||
var jsonData = $('#product-form').serializeJSON();
|
||||
var parentProductId = jsonData.product_id;
|
||||
delete jsonData.product_id;
|
||||
jsonData.parent_product_id = parentProductId;
|
||||
|
Reference in New Issue
Block a user