diff options
| author | Frédéric Guillot <fred@kanboard.net> | 2014-09-16 13:25:44 +0200 |
|---|---|---|
| committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-16 13:25:44 +0200 |
| commit | 12a688347ce9374e060f4adb98af3892542285d4 (patch) | |
| tree | 53e349326f114da6ac01d4ec9c79da1605b0e8ee /app/Controller/Base.php | |
| parent | a7f3cd87fba3e02d31f1c939a75e884d645c35e9 (diff) | |
Improve Board::Index() and avoid useless HTTP redirects
Diffstat (limited to 'app/Controller/Base.php')
| -rw-r--r-- | app/Controller/Base.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 00bfb79b..1ef54d8e 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -280,11 +280,12 @@ abstract class Base * Common method to get a project * * @access protected + * @param integer $project_id Default project id * @return array */ - protected function getProject() + protected function getProject($project_id = 0) { - $project_id = $this->request->getIntegerParam('project_id'); + $project_id = $this->request->getIntegerParam('project_id', $project_id); $project = $this->project->getById($project_id); if (! $project) { |
