Skip to content

Commit

Permalink
MDL-20353 adding missing data types of hidden form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 26, 2009
1 parent 65a2e5f commit 398e230
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enrol/authorize/enrol_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,13 @@ function definition()
}
else {
$mform->addElement('hidden', 'ccstate', '');
$mform->setType('ccstate', PARAM_ALPHANUM);
$mform->addElement('hidden', 'ccaddress', $USER->address);
$mform->setType('ccaddress', PARAM_ALPHANUM);
$mform->addElement('hidden', 'cccity', $USER->city);
$mform->setType('cccity', PARAM_ALPHANUM);
$mform->addElement('hidden', 'cccountry', $USER->country);
$mform->setDefault('cccountry', $USER->country);
}
}
elseif (AN_METHOD_ECHECK == $paymentmethod)
Expand Down

0 comments on commit 398e230

Please sign in to comment.