Problem/Motivation

commerce_license_get_order_licenses() hardcodes the license reference field name on the line item to 'commerce_license'. This does not work in some cases, e.g. commerce_license_billing uses the cl_billing_license field.

This stops rules actions like 'Activates all licenses of an order' work for recurring orders.

Comments

czigor created an issue. See original summary.

czigor’s picture

Status: Active » Needs review
StatusFileSize
new1.24 KB
rodrigoaguilera’s picture

Status: Needs review » Reviewed & tested by the community

I started to write exactly the same patch. I can confirm that this one works.

AFAIK This is needed to revoke licenses in recurring orders created with commerce_license_billing

  • pjcdawkins committed 6fabd38 on 7.x-1.x authored by czigor
    Issue #2857268 by czigor: commerce_license_get_order_licenses() should...
pjcdawkins’s picture

Status: Reviewed & tested by the community » Fixed

Looks good to me - committed, thanks.

Status: Fixed » Closed (fixed)

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