Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 843fac45572dea8aa479bd3415b61b8fa0ac0ba9 1 parent b3661ab
Jérôme Mouneyrac mouneyrac authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 blocks/community/forms.php
4 blocks/community/forms.php
@@ -93,7 +93,9 @@ public function definition() {
93 93
94 94 //add the course id (of the context)
95 95 $mform->addElement('hidden', 'courseid', $this->_customdata['courseid']);
  96 + $mform->setType('courseid', PARAM_INT);
96 97 $mform->addElement('hidden', 'executesearch', 1);
  98 + $mform->setType('executesearch', PARAM_INT);
97 99
98 100 //retrieve the hub list on the hub directory by web service
99 101 $function = 'hubdirectory_get_hubs';
@@ -298,7 +300,7 @@ public function definition() {
298 300 $mform->addElement('text', 'search', get_string('keywords', 'block_community'),
299 301 array('size' => 30));
300 302 $mform->addHelpButton('search', 'keywords', 'block_community');
301   -
  303 + $mform->setType('search', PARAM_NOTAGS);
302 304
303 305 $mform->addElement('submit', 'submitbutton', get_string('search', 'block_community'));
304 306 }

0 comments on commit 843fac4

Please sign in to comment.
Something went wrong with that request. Please try again.