浏览代码

Make webui admin controller multivalue form input splitting more permissive

Now all "empty" values are deleted from the resulting array
Yann Weber 8 年前
父节点
当前提交
5f5a45569a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      lodel/plugins/webui/interface/controllers/admin.py

+ 1
- 0
lodel/plugins/webui/interface/controllers/admin.py 查看文件

@@ -317,6 +317,7 @@ def process_form(request):
317 317
                     value = []
318 318
             else:
319 319
                 value = [ v.strip() for v in value.split(LIST_SEPARATOR) ]
320
+                value = [ v for v in value if len(v) > 0]
320 321
         else:
321 322
             #Handling default value for empty string
322 323
             if len(value.strip()) == 0 and hasattr(dh, 'default'):

正在加载...
取消
保存