Just noticed that commerce_customer_field_formatter_view() contains unnecessary (placeholder?) code:

<?php
  // Collect the list of customer profile IDs.
  $profile_ids = array();
  foreach ($items as $delta => $item) {
    $profile_ids[] = $item['profile_id'];
  }
?>

The $profile_id variable is never used after this so it can be deleted.

Comments

daggerhart’s picture

Here is a patch that removes the unnecessary code.

  • rszrama committed 8441d69 on 7.x-1.x authored by daggerhart
    Issue #2486203 by daggerhart: Remove unnecessary code from...
rszrama’s picture

Status: Active » Fixed

Thanks for the patch! Committed.

Status: Fixed » Closed (fixed)

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