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.
The query
$query = $this->getQuery()
->accessCheck(TRUE)
->addTag('entity_access')
->condition('status', TRUE)
->condition('variation_id', $ids, 'IN');
Will fail when there are no variations for a product and $ids is empty
I came across this when trying to create a feed in the commerce_product_feeds module
Issue fork commerce-3359599
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 #3
tim_djComment #4
tim_djComment #7
jsacksick CreditAttribution: jsacksick at Centarro commented