mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix selecting the default stock item template (#5318)
This commit is contained in:
parent
feeccc5c91
commit
25334c0d91
@ -94,8 +94,8 @@ function selectLabel(labels, items, options={}) {
|
|||||||
return item.pk == user_settings.DEFAULT_PART_LABEL_TEMPLATE;
|
return item.pk == user_settings.DEFAULT_PART_LABEL_TEMPLATE;
|
||||||
else if (options.key == 'location')
|
else if (options.key == 'location')
|
||||||
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
||||||
else if (options.key == 'stock')
|
else if (options.key == 'item')
|
||||||
return item.pk == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
return item.pk == user_settings.DEFAULT_ITEM_LABEL_TEMPLATE;
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user