Línea 170... |
Línea 170... |
170 |
'name' => $record['name'],
|
170 |
'name' => $record['name'],
|
171 |
'description' => $record['description'],
|
171 |
'description' => $record['description'],
|
172 |
'text' => $record['text'],
|
172 |
'text' => $record['text'],
|
173 |
'language' => $language,
|
173 |
'language' => $language,
|
174 |
'status' => $status,
|
174 |
'status' => $status,
|
- |
|
175 |
'link_take_a_test' => $allowTakeATest && ( empty($record['status']) || $record['status'] == CompanySelfEvaluationTest::STATUS_DRAFT )
|
175 |
'link_take_a_test' => $allowTakeATest && empty($record['status']) ? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']]) : '',
|
176 |
? $this->url()->fromRoute('profile/self-evaluation/take-a-test', ['id' => $record['uuid']]) : '',
|
176 |
'link_report' => $allowReport && $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ? $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']]) : '',
|
177 |
'link_report' => $allowReport && $record['status'] == CompanySelfEvaluationTest::STATUS_COMPLETED ? $this->url()->fromRoute('profile/self-evaluation/report', ['id' => $record['uuid']]) : '',
|
177 |
];
|
178 |
];
|