From 889ec5de425a0c97e5d8dddaaa6c54737ab694d0 Mon Sep 17 00:00:00 2001 From: demis-palma Date: Tue, 15 Apr 2014 18:57:32 +0100 Subject: [PATCH] User selector is blank by default 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. --- libraries/cms/form/field/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/cms/form/field/user.php b/libraries/cms/form/field/user.php index 6e433a5b11e05..44c53f5f56d85 100644 --- a/libraries/cms/form/field/user.php +++ b/libraries/cms/form/field/user.php @@ -80,7 +80,7 @@ protected function getInput() } else { - $table->username = JText::_('JLIB_FORM_SELECT_USER'); + $table->name = JText::_('JLIB_FORM_SELECT_USER'); } // Create a dummy text field with the user name.