MDL-69166 enrol_fee: define default value to currency setting
authorSara Arjona <sara@moodle.com>
Tue, 27 Oct 2020 11:58:02 +0000 (12:58 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 27 Oct 2020 14:00:11 +0000 (15:00 +0100)
enrol/fee/settings.php

index 0d368cf..2f383b8 100644 (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));
     }