?
avatar chmst
chmst
13 Feb 2020

Steps to reproduce the issue

Have two categories A and B and articles in category A.

Have a custom field for articles of these categories.

Open an article and change the category from A to B.

Save the article.

Expected result

The article is saved.

Actual result

The $this->hits is empty when it comes to save in TableContent and store fails with message "Incorrect value "" for column 'hits'.

System information (as much as possible)

Additional comments

avatar chmst chmst - open - 13 Feb 2020
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Feb 2020
avatar shubhamshubh
shubhamshubh - comment - 13 Feb 2020

Confirmed.
I am working on the issue.

avatar jwaisner jwaisner - change - 13 Feb 2020
Status New Confirmed
avatar alikon
alikon - comment - 13 Feb 2020

confirmed from me too
i'll let you work on this

avatar chmst
chmst - comment - 26 Feb 2020

The same in 3.9. When the article is reloaded after a category change, the readonly fields "version", "modified_by" and "hits" remain empty on the screen.
In 3.9, the article then can be saved and the values of these fields are correct again.
in J4.0 saving the article throws the error.

avatar SharkyKZ
SharkyKZ - comment - 27 Feb 2020

The issue is coming from Joomla\CMS\MVC\Controller\FormController::reload() method which filters data before storing it to user state. I don't think this is done for security. We do store unfiltered data in other places, e.g. when saving fails.

avatar joomla-cms-bot joomla-cms-bot - change - 27 Feb 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-02-27 06:47:06
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 27 Feb 2020
avatar SharkyKZ SharkyKZ - change - 27 Feb 2020
Closed_By joomla-cms-bot SharkyKZ
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 Feb 2020

Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27919

avatar SharkyKZ
SharkyKZ - comment - 27 Feb 2020

Please test PR #28103.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27919.

Add a Comment

Login with GitHub to post a comment