Merge branch 'MDL-38889-master' of git://github.com/mouneyrac/moodle

This commit is contained in:
Dan Poltawski 2013-04-25 13:06:52 +01:00
commit 6cb94fd13b

View File

@ -93,7 +93,9 @@ class community_hub_search_form extends moodleform {
//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 @@ class community_hub_search_form extends moodleform {
$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'));
}