Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix - hidden field threw a fatal error #5

Merged
merged 1 commit into from
May 20, 2015

Conversation

wtom
Copy link
Contributor

@wtom wtom commented May 20, 2015

Hidden field directly in form:
$form = F::form([
'hidden' => F::hidden()->val('1'),
]);
Fatal error: Method FormManager\Fields\Hidden::__toString() must not throw an exception in ../vendor/form-manager/form-manager/src/Elements/ElementContainer.php on line 0

Hidden field in a form group:
$form = F::form([
'group' => F::group([
'hidden' => F::hidden()->val('1'),
])
]);
exception 'Exception' with message 'No labels allowed for this field' in .../vendor/form-manager/form-manager/src/Fields/Field.php:36

I don't know where this error comes from. Haven't had time for a deeper look at it. Simply fixed it with a "hiddenTemplate" method.

oscarotero added a commit that referenced this pull request May 20, 2015
bugfix - hidden field threw a fatal error
@oscarotero oscarotero merged commit 2022313 into oscarotero:master May 20, 2015
@oscarotero
Copy link
Owner

Thank you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants