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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maciej.zgadzaj created an issue. See original summary.

maciej.zgadzaj’s picture

Status: Active » Needs review
FileSize
805 bytes
jkuma’s picture

Status: Needs review » Reviewed & tested by the community

You're right maciej, looks good to me

jkuma’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x-2.x

  • jkuma committed 880e173 on 7.x-2.x authored by maciej.zgadzaj
    Issue #2887352 by maciej.zgadzaj: Return "data" property always returned...

Status: Fixed » Closed (fixed)

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