Closed (fixed)
Project:
Storm
Version:
6.x-1.x-dev
Component:
Storm Invoice
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
27 Sep 2010 at 19:11 UTC
Updated:
31 Oct 2010 at 10:50 UTC
Jump to comment: Most recent file
Given that $currencies is defined as
Array ( [values] => Array ( [USD] => US Dollar [CAD] => Canadian Dollar [EUR] => Euro [GBP] => British Pound [JPY] => Japanese Yen [CHF] => Swiss Franc ) [default] => EUR )
, shouldn't the lines 478 and 692 in storminvoice.theme.inc be
$mycurrency = $currencies['values'][$myorg->currency];
instead of
$mycurrency = $currencies[$myorg->currency];
?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 924436.patch | 814 bytes | tchurch |
Comments
Comment #1
tchurch commentedI haven't tested your suggestion but I do notice this on line 475:
$currencies = stormattribute_attributes_bydomain('Currency');
$currencies = $currencies['values'];
however this is missing from line 690:
$currencies = $currencies['values'];
This could be why the currency is not set correctly on the HTML print-out.
(also with the countries variable too at line 690):
$countries = $countries['values'];
I've tested this change and it now displays the correct information on the HTML print-out.
I will create a patch for them (once other patches are confirmed and committed).
Comment #2
agsh commentedThat solves the problem. Thanks a lot.
Comment #3
tchurch commentedPatch to test.
Comment #4
juliangb commentedComment #5
tchurch commentedComment #6
tchurch commented#3: 924436.patch queued for re-testing.
Comment #8
tchurch commentedThe patch failed on -dev because I had already committed it but it's only 2 lines and no other changes were done to this file yet.
Therefore I set to fixed.