Hi
I don't know bug it or feature request
Open any detail item for edit, ie from list to detail view form. In form definition one item is set readonly
Update your database record, set your item to some value
Save your form
Your readonly item should not be updated
Your readonly item is updated to your value in form
Joomla 3.10.11
I developing my extension, and noticed, that all fields in form definition (XML), are used in Update DML clause.
I didn't analyze Joomla code for it, but it is easy to reproduce
I expected that read only fields in form are not used in Update SQL clause.
Probably there is some attribute to do that.
It is useful (in my opinion), and it will be good to have it in J3 and J4
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-11-24 03:01:21 |
Closed_By | ⇒ | joomdonation |
readonly is only used in the UI to prevent users to change the value of that field on the form. The data for that field will still being submitted to server, so it changes the data of that field in database table
For your need, you also need to add
filter="unset"
to your field definition and it will work as expected. Closing as this is not a valid issue.