Fix typo after refactoring

This commit is contained in:
Frederic Guillot
2016-05-31 22:42:50 -04:00
parent 4987e245bb
commit 92aba95959
3 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class FileViewerController extends BaseController
$type = $this->helper->file->getPreviewType($file['name']);
$params = array('file_id' => $file['id'], 'project_id' => $this->request->getIntegerParam('project_id'));
if ($file['model'] === 'taskFile') {
if ($file['model'] === 'taskFileModel') {
$params['task_id'] = $file['task_id'];
}