- last update
about 1 year ago 39 pass - 🇫🇮Finland sokru
Added also tests to make sure the local tabs are visible.
- 🇺🇸United States programmerdiego
Patch #5 worked for my Drupal 9.5.11 site.
I added the following to the composer.json file
"patches": {
"drupal/diff": {
Displays local tasks on revisions sub-tab: " https://www.drupal.org/files/issues/2023-10-05/2954352-diff-show-local-t... → "
}
} - First commit to issue fork.
-
acbramley →
committed 9ac65140 on 8.x-1.x
Issue #2954352 by oknate, sokru: Local tasks for node not visible on...
-
acbramley →
committed 9ac65140 on 8.x-1.x
- Status changed to Fixed
9 months ago 6:01am 11 April 2024 - 🇦🇺Australia acbramley
Unfortunately this has caused issues on Node revision pages when there is more than one secondary tab (which is what is required to actually render the link)
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("left_revision", "right_revision", "filter") to generate a URL for route "diff.revisions_diff". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 187 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
- Status changed to Needs work
8 months ago 1:01am 12 April 2024 -
acbramley →
committed 6eef3b1d on 8.x-1.x
Revert "Issue #2954352 by oknate, sokru: Local tasks for node not...
-
acbramley →
committed 6eef3b1d on 8.x-1.x
-
acbramley →
committed 6eef3b1d on 2.x
Revert "Issue #2954352 by oknate, sokru: Local tasks for node not...
-
acbramley →
committed 6eef3b1d on 2.x
- 🇫🇮Finland sokru
@acbramley could you provide a bit more information about the issue you have faced? I'm not being able to reproduce it on route
diff.revisions_diff
eg./node/1/revisions
, when selecting also "Show primary tabs" on "Secondary tabs" blocks. - 🇦🇺Australia acbramley
@sokru you need to have at least 1 other secondary tab to trigger it.
- Status changed to Needs review
7 months ago 4:05pm 16 May 2024 - 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
This patch is a port of the patch in #3169729: No local tasks on compare revisions page → . It should avoid the problem mentioned in #12.
- Status changed to Needs work
7 months ago 10:26pm 16 May 2024 - 🇦🇺Australia acbramley
Please use a merge request, patch files are not accepted on this project anymore.
- Merge request !64Issue #2954352 by Liam Morland: Add local tasks to diff.revisions_diff route → (Open) created by Liam Morland
- Status changed to Needs review
7 months ago 1:33pm 17 May 2024 - 🇺🇸United States adamzimmermann
I'm using
2.0.0-beta3
and the changes in MR 64 work perfectly for me and solved a client request. Thank you!So RTBC from that perspective, but I see that this MR targets the 8.x branch, so I'll refrain from updating the issue Status for now.
- 🇫🇮Finland sokru
This needs tests. I'd recommend adding tests from https://www.drupal.org/files/issues/2023-10-05/2954352-diff-show-local-t... →
and separate test for issue reported on #12. - 🇺🇸United States adamzimmermann
I have a commit ready to add the tests, but I don't seem to have access to the MR.
I'm not sure we need a test for the issue reported in #12 since the new approach doesn't have that issue, and from my experience of trying to do it the wrong way too (before I found this issue), the fact that we can load the node edit page earlier in the test proves there isn't an issue.
I upload a patch if that helps.
- 🇫🇮Finland sokru
This still needs work for issue mentioned on #12 (and #16). So it needs steps to reproduce, fix for that and tests to make sure it won't get regression.