添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
宽容的山楂  ·  Kubernetes ...·  2 周前    · 
独立的柚子  ·  mysql ...·  7 月前    · 
温暖的海豚  ·  北京大学工学院·  9 月前    · 

Save and Apply, Save and Reset does not work with a list on CBI screen #82

Closed
@jow-

Description

Reported by reporter on 21 Sep 2009 23:56 UTC
Note: The issues occurs not only on a custom screen but also on luci-app-coovachilli.

I have a custom screen that has a number of fields on it, some of which are defined as list in the data schema like so:

config variable
option name 'whitelist'
option title 'Allowed MAC addresses'
option description 'List of devices identified by MAC addresses which will bypass hotspot authentication (white list)'
option section 'chillifire.config'
option datatype 'string'
option type 'list'

In the model they are defined as dynamic list like so:
s1:option( DynamicList, "whitelist" )

The issue is that as soon as I add a value in the list, the buttons at the bottom (Reset, Save and Save and Apply) no longer work as expected. Reset does not react at all, Save and Save and Apply refresh the page but do not save the values. Strangely, when pressing the 'Unsaved Changes' Save an Apply drop down menu, changes are saved and applied as expected.

As soon as I remove any entries from list fields the strange behavior stops.

Surely that is a bug, right?

Hanno Schupp

PS: I am using branch 0.9+svn5335.