Currently the commerce_cardonfile_set_default_card function is broken because it's calling commerce_cardonfile_save() which triggers an entity save by providing an array instead of an object. Here's a tiny patch that fixes the issue, I'm not even sure this function is useful because it does a simple entity_load update a value and triggers entity_save()

Comments

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB
dwkitchen’s picture

Thanks it was on my radar but had never got to the bottom of it.

I have committed.

dwkitchen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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