Skip to content

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

Closed
rcarey wants to merge 1 commit intojoomla:masterfrom
rcarey:attrib-multiple-in-text-based-inputs
Closed

allow text-based inputs to handle "multiple"#747
rcarey wants to merge 1 commit intojoomla:masterfrom
rcarey:attrib-multiple-in-text-based-inputs

Conversation

@rcarey
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@nicksavov
Copy link
Copy Markdown
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