When editing a customer profile that will replace an existing one, it would be nice if the form submit would check to see if the old profile was a default and set the new one as a default if it was.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BassistJimmyJam’s picture

Patch attached.

BassistJimmyJam’s picture

Status: Active » Needs review

Forgot to update status.

bojanz’s picture

Status: Needs review » Fixed

Changed it to just return a profile id (no need to load the whole entity), changed one more function to use it, improved the doc block, and committed:
http://drupalcode.org/project/commerce_addressbook.git/commitdiff/e8a941f

Status: Fixed » Closed (fixed)

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