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

  • rszrama committed c503256 on 7.x-1.x
    Issue #2497641 by rszrama: add a Line Item Views filter to restrict...
rszrama’s picture

Status: Active » Fixed

Oh, 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.

rszrama’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.