mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 11:16:38 +04:00
luci-app-commands: correctly pass custom arguments as query string
Commit 702c007 changed the request to be invoked via the Request.get function
instead of the deprecated XHR one. The request options object requires the
query string to be located inside of the subobject "query", otherwise they are
not picked up. This resulted in breaking the custom arguments functionality as
the input would simply be ignored.
Fixes #7255
Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
This commit is contained in:
committed by
Paul Donald
parent
5a30e6c3af
commit
72255eb46c
@@ -45,7 +45,8 @@
|
||||
legend.parentNode.style.display = 'block';
|
||||
legend.style.display = 'inline';
|
||||
|
||||
L.Request.get(L.url('admin/system/commands/run', id), field ? { args: field.value } : null).then(function(reply) {
|
||||
var options = field ? { query: { args: field.value } } : null;
|
||||
L.Request.get(L.url('admin/system/commands/run', id), options).then(function(reply) {
|
||||
var st = reply.json();
|
||||
|
||||
if (st.binary)
|
||||
|
||||
Reference in New Issue
Block a user