Currently, only those entity properties can be used within entity query, which are shared across all of the entity bundles. This is irritating, as the UI actually lists all properties, but when try to use them, their type remains unknown.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2058037_rules_support_all_entity_properties_entity_query_2.patch | 2.69 KB | dasjo |
| #1 | 2058037_rules_support_all_entity_properties_entity_query.patch | 2.66 KB | dasjo |
Comments
Comment #1
dasjoThe attached patch fixes the above problem. It has been tested with a boolean field that is added to only 1 node type (bundle).
Comment #2
dasjoattached is a minor re-roll that makes function naming more clear & fixes the documentation code style.
Comment #3
fagoThanks, committed.
Comment #5
sportel commentedThis patch seems to have created a bug in all versions since 7.x-2.4. See https://drupal.org/node/2137681 for details and https://drupal.org/comment/8471281#comment-8471281 in particular. I hope someone is able to fix this (I unfortunately am not).
Thanks,
Mike.
Comment #6
checker commentedI have reverted this patch in rules 2.6 to fix this bug. At the moment i can't find negative side effects without this patch.
Comment #7
travist commentedI believe this patch is correct, and that the issues you are referring to are implementation issues with the Rules configurations. Please see #2137681: Error: The data type of the configured argument does not match the parameter's value requirement. for a better explanation.
Comment #8
manishs commentedThe issue https://www.drupal.org/node/2137681 is appearing again after this patch has been reverted. I had to downgrade to 2.3 and then it worked fine for me.
Comment #9
deggertsen commentedJust confirming that this patch is still causing this issue: #2137681: Error: The data type of the configured argument does not match the parameter's value requirement.
Do we need to set this back to "Needs work"?