- Issue created by @johnatas
- ๐ซ๐ทFrance johnatas
Attached patch fixes the issue on my end.
So far, I haven't noticed any side effects, but I'll continue testing and report back if anything comes up. - ๐บ๐ธUnited States chinnu76
I can reproduce the issue and confirm that the patch allows you to bypass the error
- ๐บ๐ธUnited States leraa
I can confirm this patch worked on my 11.2.2 site where content moderation was blowing up on content types using menu link.
- First commit to issue fork.
- @jernejmramor opened merge request.
- ๐ธ๐ฎSlovenia jernejmramor
Hello,
I've tested this as well and I can confirm that this patch resolves the issue when you're using Drupal 11.2.x and Token 1.15.0.
However out of curiosity I've tested the same issue with Drupal 11.1.8 and Token 1.15.0 and I couldn't reproduce this issue using the same steps.
So I don't think this issue is happening due to something being wrong with this module, but rather a change made in Drupal core from 11.1.8 to ^11.2. I've investigated a bit what this change may be, but haven't been able to find it.I've opened a MR for this, by applying patch provided in #2 ๐ Menu link exception on non-default revision Active for easier merging and test coverage. Tests are currently failing on dev branch so it might be worth fixing them first and then merging and reviewing this issue. Updating status to needs review.
- ๐ง๐ทBrazil charlliequadros
Hi everyone,
The change that is causing this error is already documented in this Drupal issue. https://www.drupal.org/project/drupal/issues/3499181#comment-16166844 ๐ Disallow saving the current default revision as a non-default revision Active , there is a reference to a ticket ๐ Avoid incorrect and unecessary menu_link_content entity saving Active that provides the solution to the problem.
I believe it would be better to close this ticket and keep the solution documented in the other one. I tested the PR from the other issue and it worked as expected.
Iโd like to hear your thoughts on this.
- ๐ซ๐ทFrance johnatas
Hello @charlliequadros,
Thanks for the information. Iโm not sure how I missed this during my research before creating my ticket.
Youโre absolutely right โ the root cause is the same, and the patch / MR from #3511768 ๐ Avoid incorrect and unecessary menu_link_content entity saving Active does fix the issue I reported.
Iโm closing this issue.