mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 16:45:02 +00:00
fix: attribute order in create multiple variants dialog (#44800)
* Fix : show multiple variants dialog Fixed attribute order in create multiple variant dialog. * fix(dialog): attribute order in create multiple variants dialog Fixed attribute order in create multiple variant dialog.
This commit is contained in:
@@ -545,7 +545,8 @@ $.extend(erpnext.item, {
|
||||
|
||||
function make_fields_from_attribute_values(attr_dict) {
|
||||
let fields = [];
|
||||
Object.keys(attr_dict).forEach((name, i) => {
|
||||
let att_key = frm.doc.attributes.map((idx) => idx.attribute);
|
||||
att_key.forEach((name, i) => {
|
||||
if (i % 3 === 0) {
|
||||
fields.push({ fieldtype: "Section Break" });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user