Skip to content

Conversation

@simara-esports
Copy link
Contributor

No description provided.

@JanTvrdik
Copy link
Contributor

Why not just use empty string?

@simara-esports
Copy link
Contributor Author

Sorry for the second commit, I'll try to remove it..

Well, it's a bug.
If you'll try to pass data from Selection::fetchPairs(), where one row have an empty name (NULL), you'll see a very strange error message and you'll ask WAT? :-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> not ,
Edit: Actually the second item is irrelevant.

@mishak87
Copy link
Contributor

mishak87 commented Apr 4, 2014

It would make more sense to sanitize options in Select. Here null value is a duplicate to empty string.

@simara-esports
Copy link
Contributor Author

@mishak87 Typo, it wasn't meant to be 3 items.

@simara-esports
Copy link
Contributor Author

Can You please accept or reject this pull request? If you'll reject, please fix the bug described in the test case.

@dg
Copy link
Member

dg commented Apr 15, 2014

I'll merge it, but please squash it to single commit and use uppercased NULL in tests.

Forms: test fix, test for ChoiseControl

Forms: Coding standard fix

NULL should be uppercase
@simara-esports
Copy link
Contributor Author

Done, thanks

@dg
Copy link
Member

dg commented Apr 18, 2014

Thx !

dg added a commit that referenced this pull request Apr 18, 2014
Forms: Selectbox allow item with null caption [ID => null]
@dg dg merged commit 23be8ee into nette:master Apr 18, 2014
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.

4 participants