While I was adding a date to an order by rules I found that the function :entity_property_verbatim_date_get() was not handeling the $data string right, it expects to be an array, and in my case it is an object.
So I changed that, and now it is working like I expected. Not sure if this is a bug or that it works as designed. But if it's a bug here's a patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | entity.entity-property-wrapper.1697654-4.patch | 851 bytes | dasjo |
| #2 | date_entity_array_to_object.patch | 642 bytes | rbosscher |
| date_entity_array_to_object.patch | 884 bytes | rbosscher |
Comments
Comment #2
rbosscher commentedOeps, sorry, wrong file locations.
Another attempt...
Comment #3
dasjoComment #4
dasjothe attached patch allows for both objects and arrays to be used with entity_property_verbatim_date_get
Comment #5
fagoYep, we need to support both. Committed, thanks.