[luci] [LuCI] #83: Save and Apply, Save and Reset does not work with a list on CBI screen

LuciTrac trac at luci.subsignal.org
Tue Sep 22 01:56:49 CEST 2009


#83: Save and Apply, Save and Reset does not work with a list on CBI screen
-------------------------------+--------------------------------------------
 Reporter:  reporter           |       Owner:            
     Type:  defect             |      Status:  new       
 Priority:  major              |   Milestone:  LuCI 0.9.0
Component:  LuCI Applications  |    Keywords:  type list 
-------------------------------+--------------------------------------------
 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.

-- 
Ticket URL: <http://luci.subsignal.org/trac/ticket/83>
LuCI <http://luci.subsignal.org/trac>
LuCI - Lua Configuration Interface


More information about the luci mailing list