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

Fixed a small potential bug. #33

Closed
wants to merge 1 commit into from
Closed

Fixed a small potential bug. #33

wants to merge 1 commit into from

Conversation

geon
Copy link

@geon geon commented Feb 21, 2011

When creating a form like this:

        <?= $form->create(false, array('action' => 'search')) ?>

A textfield created like this:

        <?= $form->input('Ad.location_name')) ?>

Would trigger a bug where the value would be set to the first character of the string $data['location_name'].

I realize this is not a big issue, but It was very unexpected, and took me a while to trace down. Workaround/Solution: Don't use model names in "false" forms.

…ey][$habtmKey] would be the first character of that string. Probably not what you want.
@markstory
Copy link
Member

Merged in [d0b7d33]. Thanks :)

This pull request was closed.
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.

None yet

2 participants