User type of field fails on frontend form #909
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#909
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Create a component with an admin view containing a field of type "user". Then make the view available from frontend. Create a menu link to the edit view.
Expected result
You can use the field as normal, by clicking on it, a popup with selectable users will show on which can be used to add the desired user to the form.
Actual result
Works as expected in backed, fails in frontend with an error like:
404 View not found [name, type, prefix]: users, html, usersView
ROOT\libraries\src\MVC\Controller\BaseController.php:839
After some debug I find out, that the URL requested is like this:
https://mydomain.com/index.php?option=com_users&view=users&layout=modal&tmpl=component&required=0&field=jform_client_id&ismoo=0
and the problem is caused by the fact that the requested view/layout exist ONLY in the Admin side
System information (as much as possible)
Latest Joomla 3, tested in various PHP/Apache versions and servers, all browsers - the error is related with the handling of the field of type "user"
Additional comments
Anyone? I have the same issue.
The field
user
is build by Joomla, JCB does not do anything to build the HTML of the edit view directly it just builds the XML that Joomla uses to load the form-fields.So I have not looked at this field in a while now... so I quickly opened "create" an article front-end form and realize Joomla does not use the user field in that view. I will look around some more, but at this point it seems Joomla dropped the ball on this fields implementation on the front-end.