mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +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,
|
||||
function(item) {
|
||||
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')
|
||||
return item.key == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
||||
return item.pk == user_settings.DEFAULT_LOCATION_LABEL_TEMPLATE;
|
||||
else if (options.key == 'stock')
|
||||
return item.key == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
||||
return item.pk == user_settings.DEFAULT_STOCK_LABEL_TEMPLATE;
|
||||
return '';
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user