Fixing hotpotatoe bug when viewing the exercise list as an student

skala
Julio Montoya 13 years ago
parent 7ef0de6f99
commit b661997a74
  1. 2
      main/exercice/exercice.php
  2. 4
      main/exercice/exercise_report.php

@ -870,7 +870,7 @@ if (isset($attribute['path']) && is_array($attribute['path'])) {
if ($active == 1) {
$nbrActiveTests = $nbrActiveTests +1;
$item .= Display::tag('td', '<a href="showinframes.php?'.api_get_cidreq().'&file='.$path.'&cid='.api_get_course_id().'&uid='.api_get_user_id().'"'.(!$active?'class="invisible"':'').'">'.$title.'</a>');
$item .= Display::tag('td', '');
//$item .= Display::tag('td', '');
$actions ='<a href="exercise_report.php?' . api_get_cidreq() . '&path='.$path.'">' . Display :: return_icon('test_results.png', get_lang('Results'),'',ICON_SIZE_SMALL).'</a>';
$item .= Display::tag('td', $actions);
echo Display::tag('tr',$item, array('class'=>$class));

@ -60,11 +60,11 @@ $filter_user = isset($_REQUEST['filter_by_user']) ? intval($_REQUEST['filter_
$locked = api_resource_is_locked_by_gradebook($exercise_id, LINK_EXERCISE);
if (empty($exercise_id)) {
api_not_allowed();
api_not_allowed(true);
}
if (!$is_allowedToEdit) {
api_not_allowed();
api_not_allowed(true);
}
if (!empty($exercise_id))

Loading…
Cancel
Save