Create custom user text field with default value Joomla
.
Edit user, see Joomla
in field input.
Save user.
Joomla
field value record in #__fields_values
table.
No field value record in #__fields_values
table.
This behavior is really frustrating:
User sees data, clicks save and is sure that the field was saved with this value.
Next admin can change default value and user will see this another new value once he edit profile again.
Besides having custom field value missed creates problems with loading fields data: the value doesn't exist and we can't know was that item (e.g. user profile or an article) updated with fields data or not.
Custom field's default value should be treated as default field value if there is no value saved before.
Once an item is saved, this value should be stored in #__fields_values
table just as usual regular value.
Labels |
Added:
?
|
Category | ⇒ | com_fields |
Title |
|
Status | New | ⇒ | Discussion |
I have to agree that would make sense, since it’s default value not global value.
Completely agree!
It also produce search/filtering problem.
If you change the default value of the field will change all the field values in the articles, which was equal to the default value. It is not correct. It should not be.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-11-27 17:29:31 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_Date | 2017-11-27 17:29:31 | ⇒ | 2017-11-27 17:29:32 |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/18546
Issue confirmed. I noticed this too a long time ago but figured it was intended and didn't think much of it as I don't make use of default values.
But yeah, thinking about it, I 100% agree with you that the expected result that you describe would definitely be the preferred behavior.