?
avatar Denitz
Denitz
10 Nov 2017

Steps to reproduce the issue

Create custom user text field with default value Joomla.
Edit user, see Joomla in field input.
Save user.

Expected result

Joomla field value record in #__fields_values table.

Actual result

No field value record in #__fields_values table.

Additional comments

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.

avatar Denitz Denitz - open - 10 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 10 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Nov 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Nov 2017
Title
Custom fields values equal to defaults are not saved
[com_fields] values equal to defaults are not saved
avatar joomla-cms-bot joomla-cms-bot - edited - 10 Nov 2017
avatar AndySDH
AndySDH - comment - 10 Nov 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 10 Nov 2017
Status New Discussion
avatar tonypartridge
tonypartridge - comment - 14 Nov 2017

I have to agree that would make sense, since it’s default value not global value.

avatar effrit
effrit - comment - 27 Nov 2017

Completely agree!
It also produce search/filtering problem.

avatar Arkadiy-Sedelnikov
Arkadiy-Sedelnikov - comment - 27 Nov 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Nov 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-11-27 17:29:31
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 27 Nov 2017
Closed_Date 2017-11-27 17:29:31 2017-11-27 17:29:32
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 27 Nov 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 Nov 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Nov 2017

closed as having Pull Request #18891

Add a Comment

Login with GitHub to post a comment