Permalink
Browse files

MDL-38889 Community finder search display setType() form warnings

  • Loading branch information...
1 parent b3661ab commit 843fac45572dea8aa479bd3415b61b8fa0ac0ba9 @mouneyrac mouneyrac committed Apr 17, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/community/forms.php
View
4 blocks/community/forms.php
@@ -93,7 +93,9 @@ public function definition() {
//add the course id (of the context)
$mform->addElement('hidden', 'courseid', $this->_customdata['courseid']);
+ $mform->setType('courseid', PARAM_INT);
$mform->addElement('hidden', 'executesearch', 1);
+ $mform->setType('executesearch', PARAM_INT);
//retrieve the hub list on the hub directory by web service
$function = 'hubdirectory_get_hubs';
@@ -298,7 +300,7 @@ public function definition() {
$mform->addElement('text', 'search', get_string('keywords', 'block_community'),
array('size' => 30));
$mform->addHelpButton('search', 'keywords', 'block_community');
-
+ $mform->setType('search', PARAM_NOTAGS);
$mform->addElement('submit', 'submitbutton', get_string('search', 'block_community'));
}

0 comments on commit 843fac4

Please sign in to comment.