Skip to content

Commit

Permalink
Fix bug auto switching project on update issues page
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Alsdorf committed Jul 14, 2017
1 parent 58294a9 commit 6ffecfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/UpdateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ protected function canAccess()
$iss_prj_id = Issue::getProjectID($this->issue_id);
if ($iss_prj_id && $iss_prj_id != $this->prj_id && in_array($iss_prj_id, $associated_projects)) {
AuthCookie::setProjectCookie($iss_prj_id);
$this->messages->addInfoMessage(ev_gettext('Note: Project automatically switched to "%1$s" from "%2$s".', Auth::getCurrentProjectName(), Project::getName($iss_prj_id)));
$this->messages->addInfoMessage(ev_gettext('Note: Project automatically switched to "%1$s" from "%2$s".', Project::getName($this->prj_id), Project::getName($iss_prj_id)));
$this->prj_id = $iss_prj_id;
}

// in the case of a customer user, also need to check if that customer has access to this issue
Expand Down

0 comments on commit 6ffecfc

Please sign in to comment.