That is fine. Frontend is also fine.
Now edit your own profile in backend (Edit Account menu item top right)
The new tab and Custom field should display. At least it is my expectation.
What do you think?
Confirming the bug.
Profile edit works in frontend but not in backend.
Is there any reason why this view is loaded by com_admin and not com_users? That's the issue here as we are editing a user in a different component, so the events are loaded with a totally different context.
Wow, didn't even notice that.
Imho, that should move to com_users. The model already extends from a user model anyway.
I can create a pr, so it would be ok for the 3 series to move it to com_users, no BC issue here?
Theoretically there are no B/C issues, practically there most likely will be.
I would copy the code from com_admin to com_users, change the links but still leave the profile view working (but deprecated) in com_admin as well. Possibly by extending the new classes in com_users to avoid duplicate code where possible.
So we are not the first ones with this issue. Looks like nikolas has it investigated extensively. If we can leave it as it is would be nice as I'm basically running out of time to do it.
I'd leave the issue open but it is certainly not a release blocker and could be done later.
We will address this issue in the Enhance User GsoC 2018 project. Please leave it open.
|Closed_Date||0000-00-00 00:00:00||⇒||2020-06-06 00:43:30|
This is fixed in #29251 for 4.0 but I can see now it's not the correct solution. Shame I realize this after beta was released.
Joomla\CMS\Fields\FieldsServiceInterface::validateSection() should have been changed or replaced to allow properly mapping contexts, not just sections.
As an alternative we could also use
com_users.profile context in
com_admin but this would break plugins that are meant to run on these contexts but not on
com_admin.profile and vice versa.