The admin view of payments at admin/content/payment shows all payments as being in the fallback currency, '¤'.

As far as I can tell, this is because this code isn't working properly:

  // If Currency 1 is enabled, prefix the amount with the currency code. If
  // Currency 2 is enabled, the amount Views field handler takes care of amount
  // formatting.
  $version = payment_currency_version();
  foreach (array('administration_page', 'user_page') as $display_name) {
    if ($version == 1) {
      $view->display[$display_name]->display_options['fields']['amount_total'] += array(
        'alter' => array(),
      );
      $view->display[$display_name]->display_options['fields']['amount_total']['alter'] += array(
        'alter_text' => TRUE,
        'text' => '[currency_code] [amount_total]',
      );
      $translatables['payments'][] = t('[currency_code] [amount]');
    }
    elseif ($version == 2) {
      $view->display[$display_name]->display_options['fields']['amount_total']['currency_code_field'] = 'payment_currency_code';
    }
  }

The 'currency_code_field' property isn't anywhere in the view when I export it.

Comments

joachim created an issue.