summaryrefslogtreecommitdiff
path: root/app/Controller/Base.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r--app/Controller/Base.php5
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) {