mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
Fix for empty option
This commit is contained in:
1 parent
27f7745231
commit
b17c3f6e0f
1 file changed
+1
-1
@@ -77,7 +77,7 @@ function setFieldOptions(fieldName, optionList, options={}) {
|
||||
|
||||
if (addEmptyOption) {
|
||||
// Add an 'empty' option at the top of the list
|
||||
field.append(makeOption('---------', '', '---------'));
|
||||
field.append(`<option value="">---------</option>`);
|
||||
}
|
||||
|
||||
optionList.forEach(function(option) {
|
||||
|
||||
Reference in new issue
Block a user