MDL-62191 course: Remove predictiondetails leftover

The no_teaching model initially had just 1 indicator, the removed
code was deleting the action using an unexisting key.
This commit is contained in:
David Monllaó 2019-09-04 08:04:20 +08:00
parent 95fcf8769b
commit af29098a2e

View File

@ -129,8 +129,6 @@ class no_teaching extends \core_analytics\local\target\binary {
}
$parentactions = parent::prediction_actions($prediction, $includedetailsaction);
// No need to show details as there is only 1 indicator.
unset($parentactions[\core_analytics\prediction::ACTION_PREDICTION_DETAILS]);
return array_merge($actions, $parentactions);
}