ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Adrek on August 05, 2014, 04:52:51 pm

Title: [1.0 RC2]Paid subscription currency cannot be set to Other
Post by: Adrek on August 05, 2014, 04:52:51 pm
I tried to setup paid subscriptions with currency that is not by default in settings, but when I select Other from select box and save it nothing happens.
Title: Re: [1.0 RC2]Paid subscription currency cannot be set to Other
Post by: Spuds on August 06, 2014, 10:16:11 am
Hummm ... looks like toggleOther has gone walkies  :-[
Title: Re: [1.0 RC2]Paid subscription currency cannot be set to Other
Post by: Spuds on August 06, 2014, 10:23:42 am
In ManagePaid.controller.php

Code: (find) [Select]
				'dummy_currency' => array('select', 'paid_currency', array('usd' => $txt['usd'], 'eur' => $txt['eur'], 'gbp' => $txt['gbp'], 'other' => $txt['other']), 'javascript' => 'onchange="toggleOther();"'),

Code: (replace) [Select]
				'dummy_currency' => array('select', 'paid_currency', array('usd' => $txt['usd'], 'eur' => $txt['eur'], 'gbp' => $txt['gbp'], 'other' => $txt['other']), 'javascript' => 'onchange="toggleCurrencyOther();"'),

toggleOther() is now toggleCurrencyOther() which is a lot more descriptive, just the call was not updated !
Title: Re: [1.0 RC2]Paid subscription currency cannot be set to Other
Post by: Adrek on August 07, 2014, 11:14:57 am
Thanks, works now :)