Permalink
Browse files

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

  • Loading branch information...
1 parent 422f68f commit 8d107e982d5952d7936c0f0a56a8dc6072b06f08 @ybozhko ybozhko committed Apr 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 badges/backpack_form.php
View
@@ -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'));

0 comments on commit 8d107e9

Please sign in to comment.