mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Bug #567174: Restrict commodity mnemonic updates (like NIS to ILS) to iso currencies only.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17805 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
435ddd4fa5
commit
fccd8b189f
@ -1656,10 +1656,12 @@ gnc_commodity_table_lookup(const gnc_commodity_table * table,
|
||||
* Backward compatability support for currencies that have
|
||||
* recently changed.
|
||||
*/
|
||||
for (i = 0; i < GNC_NEW_ISO_CODES; i++) {
|
||||
if (strcmp(mnemonic, gnc_new_iso_codes[i].old_code) == 0) {
|
||||
mnemonic = gnc_new_iso_codes[i].new_code;
|
||||
break;
|
||||
if (nsp->iso4217) {
|
||||
for (i = 0; i < GNC_NEW_ISO_CODES; i++) {
|
||||
if (strcmp(mnemonic, gnc_new_iso_codes[i].old_code) == 0) {
|
||||
mnemonic = gnc_new_iso_codes[i].new_code;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return g_hash_table_lookup(nsp->cm_table, (gpointer)mnemonic);
|
||||
|
Loading…
Reference in New Issue
Block a user