Commit ad5f87c7 authored by Penny Leach's avatar Penny Leach
Browse files

bug fix in pieforms ajax multi submit button handler

parent 95056fbe
......@@ -934,7 +934,7 @@ EOF;
}
// Add only the submit button that was clicked
$result .= " data['{$this->name}_' + {$this->name}_btn] = document.forms['$this->name'].elements['{$this->name}_' + {$this->name}_btn].value;\n";
$result .= " data[{$this->name}_btn] = document.forms['$this->name'].elements['{$this->name}_' + {$this->name}_btn].value;\n";
// Add the hidden element for detecting form submission
$result .= " data['pieform_{$this->name}'] = '';\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment