diff --git a/InvenTree/InvenTree/static/script/inventree/modals.js b/InvenTree/InvenTree/static/script/inventree/modals.js index a455e8f9d3..a17e148416 100644 --- a/InvenTree/InvenTree/static/script/inventree/modals.js +++ b/InvenTree/InvenTree/static/script/inventree/modals.js @@ -52,6 +52,41 @@ function makeOptionsList(elements, textFunc, valueFunc, titleFunc) { } +function setFieldOptions(fieldName, optionList, options={}) { + /* Set the options for a