Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
...came up here: #2128257-1: Adding related issues is extremely painful. :( by Dave Reid:
Also, you can add an issue related to itself. We should probably have some validation around that.
Comments
Comment #1
eliza411 CreditAttribution: eliza411 commentedComment #2
dwwYeah, probably wise. ;) I just made exactly this error at #2097925-4: Rename "Edit" to "Update" for consistency with the "Update this issue" button
There's also talk of displaying parent/child relationships as a tree, which would require even more fancy validation (to ensure you don't get cycles and you've got an actual tree, not a directed graph). See #1975806: Provide a way to represent the relationships between issues in a tree list format. for more on that.
Comment #3
m1r1k CreditAttribution: m1r1k commentedI'm gona add "Allow self reference" settings disabled by default for Entity reference module and it will fix this issue.
Comment #4
dwwYes, hurray for fixing it "upstream" in EntityReference itself.
Thanks!
-Derek
Comment #5
klonosThis seems to be the best solution indeed. Thanx.
Comment #6
m1r1k CreditAttribution: m1r1k commentedI've posted the patch :) https://drupal.org/node/1364802#comment-8276681
Can someone review it?
Comment #7
tvn CreditAttribution: tvn commentedPostponing until we have a review in #1364802: Prevent reference self
Comment #8
drummUntagging since this isn't really a regression. We didn't have issue relations in D6.
Comment #9
tvn CreditAttribution: tvn commentedCleaning up d7qa queue.
Comment #10
YesCT CreditAttribution: YesCT commentedjust did this to myself in #2396859-2: [Meta] finding issues is difficult