From bf2b1004407a0e4bc4d66ae27a362a2beb63112d Mon Sep 17 00:00:00 2001 From: VergilGao <8655163+VergilGao@users.noreply.github.com> Date: Thu, 9 Jan 2025 14:00:06 +0800 Subject: [PATCH] luci-app-nut: fix wrong nut_server option There is no driver_path prefix in the original lua code. https://github.com/openwrt/luci/blob/f6e6b055d514595941db4a4cc11c3d9902eabefb/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. Signed-off-by: Tianshuai Gao --- .../htdocs/luci-static/resources/view/nut/nut_server.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js b/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js index c8f9344da5a0..87c28ea6ba58 100644 --- a/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js +++ b/applications/luci-app-nut/htdocs/luci-static/resources/view/nut/nut_server.js @@ -159,9 +159,7 @@ return view.extend({ o = s.option(form.ListValue, 'driver', _('Driver'), _('If this list is empty you need to %s'.format('%s'.format(_('install drivers'))))); - driver_list.forEach(driver => { - o.value(driver_path + driver); - }); + driver_list.forEach(driver => o.value(driver)); o.optional = false; o = s.option(form.Flag, 'enable_usb_serial', _('Set USB serial port permissions'),