mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 05:25:42 +00:00
Adds support for "multiple choice" field
This commit is contained in:
@ -39,7 +39,11 @@ function editSetting(pk, options={}) {
|
||||
// First, read the settings object from the server
|
||||
inventreeGet(url, {}, {
|
||||
success: function(response) {
|
||||
|
||||
|
||||
if (response.choices && response.choices.length > 0) {
|
||||
response.type = 'choice';
|
||||
}
|
||||
|
||||
// Construct the field
|
||||
var fields = {
|
||||
value: {
|
||||
|
Reference in New Issue
Block a user