Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 843fac45572dea8aa479bd3415b61b8fa0ac0ba9 1 parent b3661ab
Jérôme Mouneyrac mouneyrac authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 blocks/community/forms.php
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'));
Please sign in to comment.
Something went wrong with that request. Please try again.