Commit fae5bee6 by sarathm

api bug fix

parent 58745000
......@@ -656,9 +656,12 @@
$("input[name=productOrModifier][value='product']").prop("checked",true);
toggleModifiersBox(1);
toggleProductModifier(0);
$("#selectcategory").val(product.subcategory.category.id);
getSubCategories();
$("#select_subcategory").val(product.subcategory.id);
console.log(product.subcategory);
if(product.subcategory.category){
$("#selectcategory").val(product.subcategory.category.id);
getSubCategories();
$("#select_subcategory").val(product.subcategory.id);
}
}
$("#name").val(product.ItemName);
$("#name_ru").val(product.ItemName_ru);
......
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