diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-31 22:14:22 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-31 22:14:22 +0000 |
commit | 9c917e82fce6284fcf5ae4b1b7ddf5a6be512298 (patch) | |
tree | ae6fd05356ba4444fb22c702d4955198339eb648 | |
parent | 25f2a5f49a8ab0ed13af2b34255199cfd4de72d7 (diff) | |
download | acf-core-9c917e82fce6284fcf5ae4b1b7ddf5a6be512298.tar.bz2 acf-core-9c917e82fce6284fcf5ae4b1b7ddf5a6be512298.tar.xz |
Fix bug in htmlviewfunctions.displayitem where form headers were not incremented
-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 c0fe57b..9c4e651 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -94,7 +94,7 @@ function mymodule.displayitem(myitem, page_info, header_level) page_info = page_info or {} if myitem.type == "form" or myitem.type == "link" then header_level = mymodule.displaysectionstart(myitem, page_info, header_level) - mymodule.displayform(myitem, page_info, header_level) + mymodule.displayform(myitem, page_info, mymodule.incrementheader(header_level)) mymodule.displaysectionend(header_level) elseif myitem.type == "group" then header_level = mymodule.displaysectionstart(myitem, page_info, header_level) |