Merge pull request #32065 from rohitwaghchaure/not-able-to-make-variant-item

fix: not able to make variant item
This commit is contained in:
rohitwaghchaure 2022-09-03 11:52:56 +05:30 committed by GitHub
commit 0efc6a9abe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -562,7 +562,7 @@ $.extend(erpnext.item, {
let selected_attributes = {};
me.multiple_variant_dialog.$wrapper.find('.form-column').each((i, col) => {
if(i===0) return;
let attribute_name = $(col).find('label').html().trim();
let attribute_name = $(col).find('.control-label').html().trim();
selected_attributes[attribute_name] = [];
let checked_opts = $(col).find('.checkbox input');
checked_opts.each((i, opt) => {