diff options
author | Ted Trask <ttrask01@yahoo.com> | 2017-01-25 18:29:36 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2017-01-25 18:29:36 +0000 |
commit | a9069d3ad39c0658bff72c763aa1e5520663726f (patch) | |
tree | 393030bb2dda43fdee12a31484a5f0730d55f0ac | |
parent | a0c9b5cb07e4b691874e858527e36cb8c83c56d0 (diff) | |
download | acf-core-a9069d3ad39c0658bff72c763aa1e5520663726f.tar.bz2 acf-core-a9069d3ad39c0658bff72c763aa1e5520663726f.tar.xz |
Add id to html form
-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 3571220..bfe68bc 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 |