J4 Issue ?
avatar pe7er
pe7er
4 May 2019

Steps to reproduce the issue

Users > Manage > select a user

As Super Admin you cannot edit the Registration date because it's readonly.
users-edit1

You can edit the HTML source (via Google Chrome > Inspect)
users-edit2

and save the new date:
users-edit3

Expected result

If a form field is readonly, you should not be able to save the field via a HTML change.

avatar pe7er pe7er - open - 4 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 4 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 May 2019
Labels Added: J4 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 May 2019
Status New Discussion
avatar PeterTHM
PeterTHM - comment - 5 May 2019

This issue may occure because the calendar.js allways replaces the field value with the given data-alt-value (if set) when the field is not set to disabled.

Because this fields are not intended to be changed manually, I would suggest to set them to disabled in the user.xml

avatar brianteeman
brianteeman - comment - 5 May 2019

setting the field to disabled will make it invisible to assistive technology

avatar Chaosxmk
Chaosxmk - comment - 6 May 2019

Does assistive technology need the input to have a name attribute? A readonly input without a name will have its value tossed away when the form is sent. Still bypass-able by manually putting the field name back in, but that comes down to the same effect as setting the field as disabled.

avatar pau1a
pau1a - comment - 19 Jul 2019

Does this even need to be a form field? Surely its only ever set once (at registration) and subsequent display could be in an element that isn't a form field but is made to look like one.

I can't remember any situations where this is editable on J3. Im still working through J4 so may be way off.

avatar Quy
Quy - comment - 20 Dec 2019

Please test PR #27328

avatar Quy Quy - close - 20 Dec 2019
avatar Quy Quy - change - 20 Dec 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-12-20 22:12:38
Closed_By Quy

Add a Comment

Login with GitHub to post a comment