Fix missing form element setType() issue in /badges/mybackpack.php

This commit is contained in:
Yuliya Bozhko 2013-04-08 12:31:36 +12:00
parent 422f68fb86
commit 8d107e982d

View File

@ -86,6 +86,7 @@ class edit_backpack_group_form extends moodleform {
$mform->addElement('static', 'url', get_string('url'), 'http://backpack.openbadges.org');
$mform->addElement('text', 'email', get_string('email'), array('size' => '50'));
$mform->setType('email', PARAM_EMAIL);
$mform->setDefault('email', $data->email);
$mform->freeze(array('email'));