diff options
author | Ted Trask <ttrask01@yahoo.com> | 2016-02-03 20:27:00 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2016-03-11 16:39:29 +0000 |
commit | 8d5e18ed2adf3c66997d21bf205101c049c39de2 (patch) | |
tree | 86194540bf031553d057c96c6e360aed3124ba9b /lib | |
parent | 7051ab380e137b44aaf73ca93fdce99769175bca (diff) | |
download | acf-core-8d5e18ed2adf3c66997d21bf205101c049c39de2.tar.bz2 acf-core-8d5e18ed2adf3c66997d21bf205101c049c39de2.tar.xz |
Fix default display when default is false
(cherry picked from commit 487fbcd76d11c5658719b3a3984653006a48b81f)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/htmlviewfunctions.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index e443317..033370b 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -48,7 +48,7 @@ end function mymodule.displayinfo(myitem) if myitem.descr then io.write('<p class="descr">' .. string.gsub(html.html_escape(myitem.descr), "\n", "<br/>") .. '</p>') end - if myitem.default then io.write('<p class="descr">Default:' .. string.gsub(html.html_escape(getlabel(myitem, myitem.default)), "\n", "<br/>") .. '</p>') end + if myitem.default == false or myitem.default then io.write('<p class="descr">Default:' .. string.gsub(html.html_escape(getlabel(myitem, myitem.default)), "\n", "<br/>") .. '</p>') end if myitem.errtxt then io.write('<p class="error">' .. string.gsub(html.html_escape(myitem.errtxt), "\n", "<br/>") .. '</p>') end end |