Gradebook: Fix missing skill tag for gradebook evaluations in gradebook index - refs BT#13334

pull/4370/head
Yannick Warnier 3 years ago
parent 1aa5e5f183
commit 4ce7c7d724
  1. 8
      main/gradebook/lib/be/evaluation.class.php
  2. 3
      main/gradebook/lib/fe/gradebooktable.class.php

@ -989,4 +989,12 @@ class Evaluation implements GradebookItem
return $targets;
}
/**
* Gets the skills related to this item from the skill_rel_item table
*/
public function getSkillsFromItem(): string
{
return Skill::getSkillRelItemsToString(ITEM_TYPE_GRADEBOOK_EVALUATION, $this->get_id());
}
}

@ -1255,9 +1255,10 @@ class GradebookTable extends SortableTable
.'</a>';
} else {
$extra = Display::label(get_lang('Evaluation'));
if ($type === 'simple') {
if ('simple' === $type) {
$extra = '';
}
$extra .= $item->getSkillsFromItem();
return '&nbsp;'
.'<a href="gradebook_view_result.php?'.api_get_cidreq().'&selecteval='.$item->get_id().'">'

Loading…
Cancel
Save