MDL-69166 enrol_fee: define default value to currency setting

This commit is contained in:
Sara Arjona 2020-10-27 12:58:02 +01:00 committed by Eloy Lafuente (stronk7)
parent 533bcf9f7b
commit 5c422a03b9

View File

@ -62,7 +62,7 @@ if ($ADMIN->fulltree) {
if (!empty($currencies)) {
$settings->add(new admin_setting_configtext('enrol_fee/cost', get_string('cost', 'enrol_fee'), '', 0, PARAM_FLOAT, 4));
$settings->add(new admin_setting_configselect('enrol_fee/currency', get_string('currency', 'enrol_fee'), '', '',
$settings->add(new admin_setting_configselect('enrol_fee/currency', get_string('currency', 'enrol_fee'), '', 'USD',
$currencies));
}