Skip to content

Commit

Permalink
Fix #80
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros committed Feb 7, 2023
1 parent 3153488 commit 80af9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/NewTaskCreationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ protected function prepare(array &$values)
$values['title'] = t('Untitled');
}

if ($this->userSession->isLogged()) {
$values['creator_id'] = $this->userSession->getId();
if ($this->userSession->isLogged() && !empty($values['creator_id'])) {
$values['creator_id'] = $this->userSession->getId();
}

$values['swimlane_id'] = empty($values['swimlane_id']) ? $this->swimlaneModel->getFirstActiveSwimlaneId($values['project_id']) : $values['swimlane_id'];
Expand Down

0 comments on commit 80af9ab

Please sign in to comment.