Cannot save certain fields in LuCI

Has anyone noticed that cannot save in certain fields in LuCI?

Primarily these (add additional boxes):

Screenshot%20from%202019-08-14%2011-41-32

Notice the box with data in it:

  • I make that edit on command line
  • I cannot add a second entry from LuCI
  • If I delete the first entry in LuCI, I cannot add another (must reuse CLI)

Locations:

  • luci/admin/system/system - NTP servers
  • luci-app-wireguard - allowed IPs

Using: LuCI Master (git-19.217.26909-07aedbf)

1 Like

Yes, I've noticed similar problems in snapshots for a couple of months now, for example, make an entry in a field, click save and apply and it's not saved, you have to make an entry, then click + and leave that entry blank and then click save and apply for the changes to save. Or another example, adding custom dns servers in Network>Interfaces, if I put 8.8.8.8 in the first field and 8.8.4.4 in the second, click + and save and apply 8.8.4.4 will move to the first field and 8.8.8.8 to the second, it has to be changed in cli to get the right order. I keep meaning to make a bug report and just keep forgetting.

1 Like

You cannot add or it doesn't retain it? If the latter, what happens if you add two?

OK, another section - I added two entries (.3 and .4) to an already existing list of one (.2):

Screenshot%20from%202019-08-14%2015-24-50

After Save and Apply:

Screenshot%20from%202019-08-14%2015-25-39

This is expected. You need to hit "+" (or press enter) to actually add the value. The last field needs to be blank before hitting Save & Apply

Edit: fixed with https://github.com/openwrt/luci/commit/0fc125a866b8e2d35491abe016b63011105c888b

3 Likes

This is unrelated to the OP's issue and caused by the fact that the widget orders the values internally before writing them to uci.

Edit: fixed with https://github.com/openwrt/luci/commit/5d2a0f17e1395a6e4ae1d23f020c4b835ff51601

1 Like