I see this in the docs:

...that are stored in different field storage engines. However, this logic can be overridden in hook_entity_query().

Should this be hook_entity_query_alter() instead? Or something else?

CommentFileSizeAuthor
#3 d7-1705102-3-do-not-test.patch662 bytesdsdeiz
#3 1705102-3.patch815 bytesdsdeiz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsdeiz’s picture

Component: entity system » documentation
Category: bug » task

Changing "Component". And "Category"? Sorry, I'm not sure if I chose the right category.

jhodgdon’s picture

Issue tags: +Needs backport to D7

Good catch! Yes, the correct hook is hook_entity_query_alter().

dsdeiz’s picture

Status: Active » Needs review
FileSize
815 bytes
662 bytes

Attached.

jhodgdon’s picture

Thanks! I'll get that committed.

(By the way, I'd recommend not wasting time making D7 patches until/unless we need them. See
http://drupal.org/node/1319154#multiple-versions
for why.)

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

forgot status change. :)

dsdeiz’s picture

Ah yeah. My bad. Won't happen again. The folks at #drupal-contribute also advised me this when I asked there.

chx’s picture

The Drupal community never ceases to astonish me. You guys caught this? Amazing.

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

It's not a *problem* that you made an extra patch, just often unnecessary work (and time you could be spending making another patch). In this case, the D7 patch was useful, because the file was a completely different name for D7. Normally, we would have wanted a clean patch to be uploaded so it could be run through the tests, but since it's a one-line docs change, I let it go this time. :)

Anyway, thanks again for contributing to Drupal! I've committed the above patches to D8 and D7.

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