2
0
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:
Oliver
2021-11-09 22:25:42 +11:00
parent 721d10a9ec
commit 8d7b73e2a8
2 changed files with 14 additions and 2 deletions

View File

@ -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: {