Fixing fatal error due wrong parameter.

skala
Julio Montoya 12 years ago
parent 3b6646f782
commit 2752bd2d0c
  1. 5
      src/ChamiloLMS/Controller/Tool/Curriculum/CurriculumCategoryController.php

@ -128,7 +128,10 @@ class CurriculumCategoryController extends CommonController
$parentEntity = $this->getEntity($id);
$entity->setParent($parentEntity);
$entity->setCourse($this->getCourse());
$entity->setSession($this->getSession());
$session = $this->getSession();
if (!empty($session)) {
$entity->setSession($this->getSession());
}
$form = $this->get('form.factory')->create($formType, $entity);

Loading…
Cancel
Save