- Issue created by @tyler.hastain
- Issue was unassigned.
Are the steps to reproduce valid on a newly-installed Drupal 10 without contributed modules?
- πΊπΈUnited States tyler.hastain Utah
Thank you for getting us headed in the right direction! In trying a fresh reinstall and trying to reproduce the issue, we discovered that it was an ECA model that we have that was causing the problem. We are going to dive into that instead. Thank you for your help!
- Assigned to tyler.hastain
- Status changed to Closed: works as designed
7 months ago 8:58pm 21 May 2024 - πΊπΈUnited States tyler.hastain Utah
We realized that this happens because of 2 different ECA models that we have running.
1st Model: We have an ECA model that when an article is moved to draft from published, that it populates the user who moved the article to draft into a "checked out by" field and resaves the article. We use this field to disable all fields while an article is checked out by someone to everyone except the person in that field.
2nd Model: This ECA model disables all the fields on an article if the logged in user is not the user in the checked out by field and the article is in the draft state.
These two models together caused the problem. Model 2 disabled the attachment fields on the initial move from published to draft. Model 1 came in to update the checked out by field and resaved. However, since the attachments field was disabled, it did not save the attachments field correctly on the resave. In other words, it saved the field as empty since it was disabled.