mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix selecting default label template (#5317)
This commit is contained in:
parent
4a211dd48d
commit
feeccc5c91
@ -91,11 +91,11 @@ function selectLabel(labels, items, options={}) {
|
|||||||
null,
|
null,
|
||||||
function(item) {
|
function(item) {
|
||||||
if (options.key == 'part')
|
if (options.key == 'part')
|
||||||
return item.key == 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.key == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
||||||
else if (options.key == 'stock')
|
else if (options.key == 'stock')
|
||||||
return item.key == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
return item.pk == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user