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

allow text-based inputs to handle "multiple" #747

Closed

Conversation

rcarey
Copy link
Contributor

@rcarey rcarey commented Mar 2, 2013

Several types of input fields have not been handling the "multiple" attribute. This attribute causes the fields to store their values as an array instead of as a string. But this fields expect a string when they attempt to load a value from the database. As a result, the field displays no value. The "multiple" attribute is needed at least for textarea and email so that validation can anticipate multiple values. This solution stops the addition of '[]' to the input field's name if it belongs to one of these text-based field types.

Code that prevents '[]' from being added to the input field's name if
the field's type expects data to be saved as a string rather than as an
array.
@nicksavov
Copy link
Contributor

@nicksavov
Copy link
Contributor

This is fixed in JoomlaCode. Thanks for coding this, Randy! :)

Closing.

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