diff --git a/php-classes/Slate/CBL/Tasks/StudentTask.php b/php-classes/Slate/CBL/Tasks/StudentTask.php index 026fd1ff7..a3b53d033 100644 --- a/php-classes/Slate/CBL/Tasks/StudentTask.php +++ b/php-classes/Slate/CBL/Tasks/StudentTask.php @@ -174,8 +174,8 @@ public function getOrCreateDemonstration() if (!$this->Demonstration) { $this->Demonstration = ExperienceDemonstration::create([ 'StudentID' => $this->StudentID, - 'PerformanceType' => $this->Task->Title, - 'Context' => $this->Task->Section->Title, + 'PerformanceType' => $this->Task->getTitle(), + 'Context' => $this->Task->Section->getTitle(), 'ExperienceType' => $this->Task->ExperienceType ]); } diff --git a/php-migrations/Slate/CBL/Tasks/20161007000000_student-task-ratings.php b/php-migrations/Slate/CBL/Tasks/20161007000000_student-task-ratings.php index 77bf23da4..d5292b3f3 100644 --- a/php-migrations/Slate/CBL/Tasks/20161007000000_student-task-ratings.php +++ b/php-migrations/Slate/CBL/Tasks/20161007000000_student-task-ratings.php @@ -65,8 +65,8 @@ 'StudentID' => $StudentTask->StudentID, 'Demonstrated' => $StudentTask->Submitted ?: null, 'ExperienceType' => $StudentTask->ExperienceType, - 'PerformanceType' => $StudentTask->Task->Title, - 'Context' => $StudentTask->Section->Title + 'PerformanceType' => $StudentTask->Task->getTitle(), + 'Context' => $StudentTask->Section->getTitle() ]); $Demonstration->save(false);