mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
luci-app-nut: fix wrong nut_server option
There is no driver_path prefix in the original lua code.
f6e6b055d5/applications/luci-app-nut/luasrc/model/cbi/nut_server.lua (L132-L135)
Currently the uci configuration file does not require this path prefix by default.
Closes #7542
Signed-off-by: Tianshuai Gao <cocopriestyu+github@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -160,7 +160,7 @@ return view.extend({
|
||||
o = s.option(form.ListValue, 'driver', _('Driver'),
|
||||
_('If this list is empty you need to %s'.format('<a href="/cgi-bin/luci/admin/system/package-manager?query=nut-driver-">%s</a>'.format(_('install drivers')))));
|
||||
driver_list.forEach(driver => {
|
||||
o.value(driver_path + driver);
|
||||
o.value(driver);
|
||||
});
|
||||
o.optional = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user