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.
In current (2.8) dev.
How to reproduce
* Using workflow_field, not workflow_node
* Add field Workflow current: State name on a relation(!)
Result: Erroneously empty field content.
Analysis
This SQL join
LEFT JOIN workflow_node_history node_field_data_field_opencsa_delivery_workflow_node_current ON ( SELECT max(hid) FROM workflow_node_history
where nid = node.nid
and sid != old_sid ) = node_field_data_field_opencsa_delivery_workflow_node_current.hid
uses node.nid where something like relation_node.nid should have been.
Comments
Comment #2
geek-merlinComment #3
johnvJust to be sure. Did this work before? Or did you discover the error when teying out something new?
Comment #4
geek-merlinNever saw this work before (it reasonably can not, see description ;-).
Walked a bit into the code, and i think this needs a join handler.
(I did it another way then, so not an issue for me anymore.)
Comment #5
johnvComment #6
semiaddict CreditAttribution: semiaddict as a volunteer commentedaxel.rutz, could you please tell us what work around you used ?
I am experiencing the same issue with 7.x-2.8 and would like to find a fix for it.
Thank you in advance.
Comment #7
jtjones23 CreditAttribution: jtjones23 commented+1 As far as hearing about the workaround
Thanks
Comment #8
geek-merlinAfaicr i did my view completely different. Not possible for everyone is suppose.