MDL-51696 tool_lp: Record was overridden by record description

This commit is contained in:
Frederic Massart
2016-04-18 10:58:35 +08:00
parent 3392a313c0
commit cf2cc1e2b0
@@ -87,7 +87,7 @@ class template_competencies_page implements renderable, templatable {
$options = array('context' => context_system::instance());
foreach ($this->competencies as $competency) {
$record = $competency->to_record();
$record = format_text($record->description, $record->descriptionformat, $options);
$record->descriptionformatted = format_text($record->description, $record->descriptionformat, $options);
array_push($data->competencies, $record);
}
$data->canmanagecompetencyframeworks = $this->canmanagecompetencyframeworks;