diff options
author | Ted Trask <ttrask01@yahoo.com> | 2017-01-25 18:29:36 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-02-27 17:17:04 +0000 |
commit | adb72e4f10c87bba2c67a191cb8eec89daba17ac (patch) | |
tree | f87251e33396cdfda2ac454a9b58ffcace018163 /lib | |
parent | ef4c791b227956013b5faf5cc4c9d1fac5d0786b (diff) | |
download | acf-core-adb72e4f10c87bba2c67a191cb8eec89daba17ac.tar.bz2 acf-core-adb72e4f10c87bba2c67a191cb8eec89daba17ac.tar.xz |
Add id to html form
(cherry picked from commit a9069d3ad39c0658bff72c763aa1e5520663726f)
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 033370b..cd5774c 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -250,7 +250,7 @@ function mymodule.displayformstart(myform, page_info) myform.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action end mymodule.displayinfo(myform) - io.write('<form action="' .. html.html_escape(myform.action) .. '" ') + io.write('<form action="' .. html.html_escape(myform.action) .. '" id="' .. html.html_escape(myform.id or page_info.action) .. '" ') if myform.enctype and myform.enctype ~= "" then io.write('enctype="'..html.html_escape(myform.enctype)..'" ') end |