Skip to content

Commit

Permalink
MDL-64222 badge: Removed backpackurl from the edit_form
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona authored and Jenkins committed Jan 8, 2019
1 parent 2c4463b commit 502650a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions badges/backpack_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ public function definition() {
$mform->addElement('hidden', 'userid', $USER->id);
$mform->setType('userid', PARAM_INT);

$mform->addElement('hidden', 'backpackurl', BADGE_BACKPACKURL);
$mform->setType('backpackurl', PARAM_URL);

if (isset($this->_customdata['email'])) {
// Email will be passed in when we're in the process of verifying the user's email address,
// so set the connection status, lock the email field, and provide options to resend the verification
Expand Down Expand Up @@ -94,7 +91,7 @@ public function validation($data, $files) {
// We don't need to verify the email address if we're clearing a pending email verification attempt.
if (!isset($data['revertbutton'])) {
$check = new stdClass();
$check->backpackurl = $data['backpackurl'];
$check->backpackurl = BADGE_BACKPACKURL;
$check->email = $data['email'];

$bp = new OpenBadgesBackpackHandler($check);
Expand Down

0 comments on commit 502650a

Please sign in to comment.