summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-09-12 03:24:10 +0000
committerTed Trask <ttrask01@yahoo.com>2014-09-12 03:24:10 +0000
commit0c3cebbfcf440e2810447ccf625ea17eb165f9bd (patch)
tree8a3170499795b30e60d34cb6f44701a176aad40a
parentda59e833390b1b2081d75422146147d47f738e09 (diff)
downloadacf-core-0c3cebbfcf440e2810447ccf625ea17eb165f9bd.tar.bz2
acf-core-0c3cebbfcf440e2810447ccf625ea17eb165f9bd.tar.xz
Modify htmlviewfunctions to display readonly select as text since select does not support readonly option
-rw-r--r--lib/htmlviewfunctions.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua
index 8216780..256d3a4 100644
--- a/lib/htmlviewfunctions.lua
+++ b/lib/htmlviewfunctions.lua
@@ -220,6 +220,8 @@ function mymodule.displayformitem(myitem, name, viewtype, header_level, group)
myitem.value = table.concat(myitem.value, "\n")
io.write(html.form.longtext(myitem))
myitem.value = tempval
+ elseif myitem.type == "select" and myitem.readonly then
+ io.write((html.form.text(myitem) or ""))
else
io.write((html.form[myitem.type](myitem) or ""))
end