2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add optional part lookup by "part" field

This commit is contained in:
Oliver
2022-02-07 08:37:39 +11:00
parent 81271bf6b9
commit 0963602bea
2 changed files with 12 additions and 4 deletions

View File

@ -1236,7 +1236,7 @@ function addClearCallbacks(fields, options) {
}
function addClearCallback(name, field, options) {
function addClearCallback(name, field, options={}) {
var field_name = getFieldName(name, options);
@ -1491,7 +1491,7 @@ function initializeRelatedField(field, fields, options={}) {
var pageSize = options.pageSize || 25;
var parent = null;
var auto_width = true;
var auto_width = false;
// Special considerations if the select2 input is a child of a modal
if (options && options.modal) {