summaryrefslogtreecommitdiffstats
path: root/lib/viewfunctions.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-23 13:53:41 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-23 13:53:41 +0000
commit062423a2cd98a8c1dfd23453853bf73b8db1b180 (patch)
tree7d012739c5305a7a6c13855277c8944062de004e /lib/viewfunctions.lua
parentbf06405854b19097e4aa1d3981f5e78727331d8c (diff)
downloadacf-core-062423a2cd98a8c1dfd23453853bf73b8db1b180.tar.bz2
acf-core-062423a2cd98a8c1dfd23453853bf73b8db1b180.tar.xz
Fixed minor bug with displayformitem in viewfunctions.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1562 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/viewfunctions.lua')
-rw-r--r--lib/viewfunctions.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index 693b3d8..139b6f6 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -109,7 +109,7 @@ function displayformitem(myitem, name, viewtype)
io.write(' class="error"')
end
io.write(">" .. myitem.label .. "</DT>\n")
- io.write("<DD></DD>\n")
+ io.write("<DD>\n")
end
if (viewtype == "viewonly") then
myitem.disabled = "true"
@@ -160,9 +160,11 @@ function displayformitem(myitem, name, viewtype)
else
io.write((html.form[myitem.type](myitem) or "") .. "\n")
end
- if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
- if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
- io.write("</DD>\n")
+ if myitem.type ~= "hidden" then
+ if myitem.descr then io.write('<P CLASS="descr">' .. string.gsub(myitem.descr, "\n", "<BR>") .. "</P>\n") end
+ if myitem.errtxt then io.write('<P CLASS="error">' .. string.gsub(myitem.errtxt, "\n", "<BR>") .. "</P>\n") end
+ io.write("</DD>\n")
+ end
end
function displayformstart(myform, page_info)