From 92aba95959633eee824e2d19e12adc7921d31431 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 31 May 2016 22:42:50 -0400 Subject: Fix typo after refactoring --- app/Controller/FileViewerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/FileViewerController.php') diff --git a/app/Controller/FileViewerController.php b/app/Controller/FileViewerController.php index 245845c7..518f5b0b 100644 --- a/app/Controller/FileViewerController.php +++ b/app/Controller/FileViewerController.php @@ -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']; } -- cgit v1.2.3