This applies to supportsIndex() method in CommerceSearchApiAlterProductStatus and CommerceSearchApiProductDisplayFilter - when checking for supported entity types, it should use $index->getEntityType() instead of $index->item_type, as these do not have to be the same.

Example: multilingual indexes provided by Search API Entity Translation, where for multilingual node indexes item_type equals search_api_et_node.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maciej.zgadzaj’s picture

Status: Active » Needs review
FileSize
1.19 KB
jsacksick’s picture

I just gave you the commit access, feel free to commit it :).

maciej.zgadzaj’s picture

Status: Needs review » Fixed

Thanks, and done!

  • maciej.zgadzaj committed 6306daa on 7.x-1.x
    Issue #2335137: Use proper entity type check in data alteration classes
    

Status: Fixed » Closed (fixed)

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