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.
When loading a commerce_return
entity, its data
property is always returned as FALSE
.
This is because data
column in commerce_return_schema()
is defined as 'serialize' => TRUE
, which means that its value is automatically unserialized by EntityAPIControllerInterface::load()
, and when it later calls CommerceReturnEntityController::attachLoad()
the data
value is no longer a string (as it is already unserialized), thus CommerceReturnEntityController::attachLoad()
replaces it with FALSE
.
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_rma-data_property_load-2887352-2.patch | 805 bytes | maciej.zgadzaj |
Comments
Comment #2
maciej.zgadzaj CreditAttribution: maciej.zgadzaj commentedComment #3
jkuma CreditAttribution: jkuma as a volunteer commentedYou're right maciej, looks good to me
Comment #4
jkuma CreditAttribution: jkuma as a volunteer commentedCommitted to 7.x-2.x