Fix typo after refactoring
This commit is contained in:
@@ -77,7 +77,7 @@ abstract class BaseController extends Base
|
|||||||
$model = 'projectFile';
|
$model = 'projectFile';
|
||||||
|
|
||||||
if ($task_id > 0) {
|
if ($task_id > 0) {
|
||||||
$model = 'taskFile';
|
$model = 'taskFileModel';
|
||||||
$project_id = $this->taskFinderModel->getProjectId($task_id);
|
$project_id = $this->taskFinderModel->getProjectId($task_id);
|
||||||
|
|
||||||
if ($project_id !== $this->request->getIntegerParam('project_id')) {
|
if ($project_id !== $this->request->getIntegerParam('project_id')) {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ class FileViewerController extends BaseController
|
|||||||
$type = $this->helper->file->getPreviewType($file['name']);
|
$type = $this->helper->file->getPreviewType($file['name']);
|
||||||
$params = array('file_id' => $file['id'], 'project_id' => $this->request->getIntegerParam('project_id'));
|
$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'];
|
$params['task_id'] = $file['task_id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ class LdapUserProvider implements UserProviderInterface
|
|||||||
* @param string $role
|
* @param string $role
|
||||||
* @param string[] $groupIds
|
* @param string[] $groupIds
|
||||||
* @param string $photo
|
* @param string $photo
|
||||||
|
* @param string $language
|
||||||
*/
|
*/
|
||||||
public function __construct($dn, $username, $name, $email, $role, array $groupIds, $photo = '', $language = '')
|
public function __construct($dn, $username, $name, $email, $role, array $groupIds, $photo = '', $language = '')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user