commerce_coupon_update_7003 ( Set the coupon reference as non locked. )

Looks like it tries to change the field type to 'commerce_coupon_reference' right after

commerce_coupon_update_7002 ( Remove coupon type id field and update coupon reference field. )

has just changed it to an entity reference field

This causes the update to fail.

Fixing that error then gives a new error

"Cannot change an existing field's entity_types property"

because the entity_types for commerce_coupon_reference was array('commerce_order', 'commerce_coupon') but commerce_coupon_update_7003 tries to set it to array('commerce_coupon') only.

The attached patch fixes up commerce_coupon_update_7003 and allows it to run properly.

thanks,

DT

Comments

davidwhthomas’s picture

Issue summary: View changes

more info

pcambra’s picture

Status: Needs review » Fixed

I assumed wrongly that people did 7003 before updating the code, I'm removing the code better as it doesn't make any sense now.

Thanks for reporting

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

formatting