Problem/Motivation
When browsing the list of relationships at /admin/content/crm/relationship, you only see the active relationships.
This is caused by the logic in \Drupal\crm\ListBuilder\RelationshipListBuilder::getEntityListQuery:
$query = $this
->getStorage()
->getQuery()
->condition('status', TRUE)
->accessCheck(TRUE)
->sort('id');
This seems rather weird, since the overview has a row called "Status", but it never shows disabled ones.
Also, when you disable a relationship by editing it, and then want to re-enable it, you cannot find it back, since it disappeared from the list, which is a weird user experience.
Is this by design for a particular reason, or an oversight?
Given the specific override of getEntityListQuery(), it seems like this was on purpose?
Issue fork crm-3567093
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jdleonardGood bug.
Comment #4
jdleonardComment #5
jdleonardComment #6
jdleonardThis uncovered another bug: the
RelationshipControllertable captions weren't showing due to use of#titlethat should have been#caption, which I fixed.There was a test failure due to
testRelationshipControllertesting the wrong path and failing to delete all the relationships. Test fixed.Comment #9
bluegeek9 commented