Reproduce the issue:

- Put some variation in cart.
- Remove all remaining stock for the variation
- Reload cart page

Boom. It explodes: "TypeError: Argument 3 passed to t() must be of the type array, string given, called in .../commerce_stock_enforcement.module"

Comments

olafkarsten created an issue. See original summary.

olafkarsten’s picture

Title: Stock enforcement kills site, if variation is out of stock and use has some of it already in cart » Stock enforcement kills site, if variation is out of stock and user has some of it already in cart
thejacer87’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB
p4trizio’s picture

Status: Needs review » Reviewed & tested by the community

@thejacer87 your patch solves the problem, thanks!

olafkarsten’s picture

Assigned: Unassigned » olafkarsten
Issue tags: +ContributionWeekend2019

ready to commit

thanks

  • olafkarsten committed 731305c on 8.x-1.x
    Issue #3014406 by thejacer87, olafkarsten, p4trizio: Stock enforcement...
olafkarsten’s picture

Status: Reviewed & tested by the community » Fixed

commited thanx

Status: Fixed » Closed (fixed)

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