- Affected App
- WoltLab Suite Core
1. Create a form like this and load it via FormBuilderDialog:
$dialog = DialogFormDocument::create('myDialog');
$dialog->appendChild(HiddenFormField::create('test')->value('myValue'));
$dialog->build();
return $dialog;
{"returnValues":{"dialog":"<script data-relocate=\"true\">\r\n\t\r\n\trequire([\r\n\t\t'WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager'\r\n\t\t\t\t\t, 'WoltLabSuite/Core/Form/Builder/Manager'\r\n\t\t\t], function(\r\n\t\tFormBuilderFieldDependencyManager\r\n\t\t\t\t\t, FormBuilderManager\r\n\t\t\t) {\r\n\t\tFormBuilderFieldDependencyManager.register('myDialog');\r\n\t\t\r\n\t\t\t\t\tFormBuilderManager.registerForm('myDialog');\r\n\t\t\t});\r\n</script>\r\n\r\n\r\n\r\n\t<section id=\"myDialog\">\r\n\t\t\t\t\t\t<dl id=\"testContainer\" >\r\n\t<dt></dt>\r\n\t<dd>\r\n\t\t<input type=\"hidden\" id=\"test\" name=\"test\" value=\"myValue\">\t\t\r\n\t\t\t\t\t\t\t\t\t</dd>\r\n</dl>\t\t\t\t\r\n\t\t\t<div class=\"formSubmit\">\r\n\t\t\t\t\t\t\t\t<button id=\"submitButton\" class=\"buttonPrimary\" data-type=\"submit\" accesskey=\"s\">Submit</button>\r\n\t\t\t\t\t\t\t\t<button id=\"cancelButton\" data-type=\"cancel\">Cancel</button>\r\n\t\t\t\t\t</div>\r\n\t\r\n\t</section>\r\n\r\n\r\n<script data-relocate=\"true\">\r\n\t\r\n\trequire(['WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager'], function(FormBuilderFieldDependencyManager) {\r\n\t\tFormBuilderFieldDependencyManager.checkDependencies();\r\n\t});\r\n</script>","formId":"myDialog"}}
2. Submit the dialog and take a look at the data submitted by the browser to the server:
{"actionName":"myAction","className":"wcf\\data\\test\\TestAction","":"","parameters[formId]":"myDialog"}
Expected:
The hidden input field will be visible in the POSTed data.
Current:
The hidden input field is missing the POSTed data.
Tested with d4569269@master.