Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2486203-1-remove-unnecessary-code-commerce-customer-field-formatter-view.patch | 745 bytes | daggerhart |
Comments
Comment #1
daggerhart CreditAttribution: daggerhart as a volunteer commentedHere is a patch that removes the unnecessary code.
Comment #3
rszrama CreditAttribution: rszrama at Centarro commentedThanks for the patch! Committed.