Try to use the JFormFieldUser in an XML form with the default value set to "current". The name is displayed correctly in the text input but the hidden input has a value of 0. When this fix is applied the hidden field should have the value of the currently logged in user.
Tested by setting default value for created_by field in add article form. Before patch, the hidden field has value=0. After patch, the hidden field has value of the current logged in user. Works as expected.
I have tested this item successfully on 5c7f5c2
Tested by setting default value for created_by field in add article form. Before patch, the hidden field has value=0. After patch, the hidden field has value of the current logged in user. Works as expected.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9921.