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

User selector is blank by default #3454

Merged
merged 1 commit into from Apr 16, 2014
Merged

User selector is blank by default #3454

merged 1 commit into from Apr 16, 2014

Conversation

demis-palma
Copy link
Contributor

@demis-palma demis-palma commented Apr 15, 2014

User selector displays "Select a User" when you explicitly clear the selection by pressing the button "- No User -", but it is blank by default.

How to reproduce the problem: Go to User > User Notes and create a new note. The User ID field is blank. Click on the blue button in order to select an user. Once arrived on the users list click on "No User" button. The users list disappears, but this time the User ID field contains the text "Select a User".

Source file: libraries/cms/form/field/user.php
Since JText::('JLIB_FORM_SELECT_USER') is not a valid username, it's clear that the original code wanted to assign JText::('JLIB_FORM_SELECT_USER') to $table->name instead of $table->username.

User selector displays "Select a User" when you explicitly clear the selection by pressing the button "- No User -", but it is blank by default.

Hot to reproduce the problem: Go to USer > User Notes and create a new note. The User ID field is blank. Click on the blue button in order to select an user. Once arrived on the users list click on "No USer" button. The users list disappears, but this time the USer ID field contains the text "Select a User".

Source file: libraries/cms/form/field/user.php
Since JText::_('JLIB_FORM_SELECT_USER') is not a valid username, it's clear that the original code wanted to assign JText::_('JLIB_FORM_SELECT_USER') to $table->name instead of $table->username.
@demis-palma
Copy link
Contributor Author

@zero-24
Copy link
Contributor

zero-24 commented Apr 15, 2014

Hi @demis-palma confirm issue and fix

Good catch!

@zero-24
Copy link
Contributor

zero-24 commented Apr 15, 2014

@demis-palma can you send the same against the 2.5.x branche and link at the Tracker?
Thanks

infograf768 added a commit that referenced this pull request Apr 16, 2014
User selector is blank by default
@infograf768 infograf768 merged commit 60ba9d4 into joomla:staging Apr 16, 2014
infograf768 added a commit that referenced this pull request Apr 16, 2014
[#33619] [2.5.x] Backport #3454 against 2.5.x branche
Bakual pushed a commit to Bakual/joomla-cms that referenced this pull request May 12, 2014
User selector is blank by default
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

4 participants