Since Drupal Commerce depends on a bi-directional reference between orders and line items, it is possible for line items to exist that either don't reference an order or that reference an order that does not reference it in turn. This is problematic when a site builder wants to create a View of line items, because it includes items in the result set that wouldn't be acknowledged anywhere else. We need a filter that can restrict the result set to only include non-orphaned line items.
Comments
Comment #2
rszrama commentedOh, look! I had literally just written code for this. Happy day.
I even one-upped myself to include an operator selection so you can choose to show only orphaned line items if you want to.
Comment #3
rszrama commented