The last submitted patch, 76: 2906568-76.patch, failed testing. View results β
- π¦πΊAustralia acbramley
Fixed comparison of strings vs FormattableMarkup, added return types.
- π§π΄Bolivia manuvelasco Bolivia
The patch on #78 works for me just for sites without translate content enabled, that is because the route for content with translation is node.revision_revert_translation_confirm so we should also add a form for these cases and assign it to the mentioned route.
- Status changed to Needs work
over 1 year ago 3:37pm 13 June 2023 - πΊπΈUnited States smustgrave
This would be a great feature to have. Can we update the issue summary with the agreed upon solution though?
Also have posted in the #ux for usability review so hopefully happens soon.
- First commit to issue fork.
- Merge request !5696Issue #2906568: Provide users with the option to select an appropriate moderation state when reverting to a previous revision β (Open) created by mstrelan
- π¦πΊAustralia mstrelan
Had the same thought as #51, this is very specific to nodes and I'm not sure it needs to be.
- π³πΏNew Zealand ericgsmith
Adding patch of MR5696 at commit 3ba5a1a1 for anybody needing a stable patch against 10.2
- π¨π¦Canada jlongbottom
When I revert a revision to Draft, it is updating the published SQL table for my field (eg: paragraph__field_X), as well as creating a new row in the revisions table (paragraph_revision__field_X). This does not happen when you make a new draft - only when you revert to a draft.
I noticed this because I have some custom code elsewhere that is manually querying the non-revision SQL table for my field and I was surprised to find the reverted draft values instead of the published values.
It looks like we call
prepareRevertedRevision
which is hard-coded to$revision->isDefaultRevision(TRUE);
. Is this correct? Seems like it should be false if reverting to a draft. - π¨π¦Canada jlongbottom
When I revert a revision to Draft, it is updating the published SQL table for my field (eg: paragraph__field_X), as well as creating a new row in the revisions table (paragraph_revision__field_X). This does not happen when you make a new draft - only when you revert to a draft.
I noticed this because I have some custom code elsewhere that is manually querying the non-revision SQL table for my field and I was surprised to find the reverted draft values instead of the published values.
It looks like we call
prepareRevertedRevision
which is hard-coded to$revision->isDefaultRevision(TRUE);
. Is this correct? Seems like it should be false if reverting to a draft. - π¨π¦Canada jlongbottom
That seemed to have fixed the issue for me. Attached is my patch.
- π¨π¦Canada jlongbottom
Updated route subscriber to work on multilingual sites
- π¦πΊAustralia mstrelan
@opi I've attached the patch we're using for 10.3.0, but I have set it to hidden so as not to confuse this issue further. This is based on the patch in #87 as that's what we were previously using and I haven't reviewed 89-91, which don't have interdiffs and aren't in sync with the MR.
- π«π·France opi
@mstrelan Thanks a lot ! I wasn't brave enough to rebase a 21KB patch last evening <3
- π¨π¦Canada jlongbottom
re-rolled against 10.3.1, but I did not bother with the tests