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.
The article is saved.
The $this->hits is empty when it comes to save in TableContent and store fails with message "Incorrect value "" for column 'hits'.
Status | New | ⇒ | Confirmed |
confirmed from me too
i'll let you work on this
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.
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.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-02-27 06:47:06 |
Closed_By | ⇒ | joomla-cms-bot |
Closed_By | joomla-cms-bot | ⇒ | SharkyKZ |
Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/27919
Please test PR #28103.
Confirmed.
I am working on the issue.