summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2017-01-25 18:29:36 +0000
committerTed Trask <ttrask01@yahoo.com>2017-02-27 16:59:18 +0000
commit4f0d10d7c9455dca4eed37dc8f6447d7360bbf8b (patch)
tree64d9de68130751b3a720a28d2e1b297cdf7d2aa8 /lib
parent6776032cadadeb19f22721fc6cb4da3ab52c9cd7 (diff)
downloadacf-core-4f0d10d7c9455dca4eed37dc8f6447d7360bbf8b.tar.bz2
acf-core-4f0d10d7c9455dca4eed37dc8f6447d7360bbf8b.tar.xz
Add id to html form
(cherry picked from commit a9069d3ad39c0658bff72c763aa1e5520663726f)
Diffstat (limited to 'lib')
-rw-r--r--lib/htmlviewfunctions.lua2
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