Skip to content

Commit

Permalink
Fix missing form element setType() issue in /badges/mybackpack.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuliya Bozhko committed Apr 8, 2013
1 parent 422f68f commit 8d107e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions badges/backpack_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public function definition() {
$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'));

Expand Down

0 comments on commit 8d107e9

Please sign in to comment.