mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix duplicate hidden input when a form includes mid or act as a <select>
This commit is contained in:
parent
0c018f1daf
commit
620fee05cf
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ class TemplateParser_v1
|
||||||
// if not exists default hidden tag, generate hidden tag
|
// if not exists default hidden tag, generate hidden tag
|
||||||
if ($autoform)
|
if ($autoform)
|
||||||
{
|
{
|
||||||
preg_match_all('/<input[^>]* name="(act|mid)"/is', $matches[2], $m2);
|
preg_match_all('/<(?:input|select)[^>]* name="(act|mid)"/is', $matches[2], $m2);
|
||||||
$missing_inputs = array_diff(['act', 'mid'], $m2[1]);
|
$missing_inputs = array_diff(['act', 'mid'], $m2[1]);
|
||||||
if(is_array($missing_inputs))
|
if(is_array($missing_inputs))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue