Fix from 1.9.x

1.10.x
Julio Montoya 11 years ago
parent 54542b51a7
commit 9b466842a1
  1. 3
      main/gradebook/lib/fe/linkaddeditform.class.php
  2. 2
      main/inc/lib/groupmanager.lib.php

@ -30,9 +30,10 @@ class LinkAddEditForm extends FormValidator
// set or create link object
if (isset($link_object)) {
$link = $link_object;
} elseif (isset ($link_type) && isset ($category_object)) {
} elseif (isset($link_type) && isset($category_object)) {
$link = LinkFactory :: create ($link_type);
$link->set_course_code(api_get_course_id());
$link->set_category_id($category_object[0]->get_id());
} else {
die ('LinkAddEditForm error: define link_type/category_object or link_object');
}

@ -2730,7 +2730,7 @@ class GroupManager
public static function getSearchForm()
{
$url = api_get_path(WEB_CODE_PATH).'group/group_overview.php?'.api_get_cidreq();
$form = new FormValidator('search_groups', 'get', $url, null, array(), FormValidator::LAYOUT_INLINE);
$form = new FormValidator('search_groups', 'get', $url, null, array('class' => 'form-search'), FormValidator::LAYOUT_INLINE);
$form->addElement('text', 'keyword');
$form->addButtonSearch();
return $form->toHtml();

Loading…
Cancel
Save