diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-07-06 10:00:19 -0400 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-07-06 10:00:19 -0400 |
commit | 7eda47ba7e6f00fa24d3da99bb6b82c116d03fbf (patch) | |
tree | f461c1e0302e4665b15c8330e67634d388ed55ab | |
parent | df9f7a1dd10b1c3b4e17739222b882cdcf2b17f8 (diff) | |
download | acf-provisioning-7eda47ba7e6f00fa24d3da99bb6b82c116d03fbf.tar.bz2 acf-provisioning-7eda47ba7e6f00fa24d3da99bb6b82c116d03fbf.tar.xz |
Fix searchdevices HTML view when used for getdevicevalues
-rw-r--r-- | provisioning-searchdevices-html.lsp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/provisioning-searchdevices-html.lsp b/provisioning-searchdevices-html.lsp index 3cecce2..0cdae00 100644 --- a/provisioning-searchdevices-html.lsp +++ b/provisioning-searchdevices-html.lsp @@ -24,6 +24,7 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"deletedevice", "editdevice", "editdeviceparams", "overridedeviceparams"}, session) %> <% +-- This view is also used for getdevicevalues, and this is where the values are displayed if form.value.values then local header_level = htmlviewfunctions.displaysectionstart(cfe({label="Device"}), page_info) htmlviewfunctions.displayinfo(form) @@ -35,8 +36,9 @@ if form.value.values then htmlviewfunctions.displaysectionend(header_level2) htmlviewfunctions.displaysectionend(header_level) form.value.values = nil +-- And here we display the list of devices in the result elseif form.value.result then - local func = haserl.loadfile(page_info.viewfile:gsub("searchdevices", "listdevices")) + local func = haserl.loadfile(page_info.viewfile:gsub(page_info.action, "listdevices")) func(form.value.result, viewlibrary, page_info, session) end %> |