diff --git a/module/block/view/scrumprojectblock.html.php b/module/block/view/scrumprojectblock.html.php
index f658723c6e..ab6e9f41a0 100644
--- a/module/block/view/scrumprojectblock.html.php
+++ b/module/block/view/scrumprojectblock.html.php
@@ -20,7 +20,8 @@
block->allProject;?>
-
total;?>
+ createLink('project', 'index', 'locate=no')?>
+
total ? html::a($projectLink, $summary->total) : 0;?>
diff --git a/module/budget/control.php b/module/budget/control.php
index 6c1e83f28c..e303abcfaa 100644
--- a/module/budget/control.php
+++ b/module/budget/control.php
@@ -11,14 +11,6 @@
*/
class budget extends control
{
- /**
- * __construct
- *
- * @param string $module
- * @param string $method
- * @access public
- * @return void
- */
public function __construct($module = '', $method = '')
{
parent::__construct($module, $method);
diff --git a/module/design/model.php b/module/design/model.php
index 2b5b155db0..41168142ce 100644
--- a/module/design/model.php
+++ b/module/design/model.php
@@ -255,7 +255,7 @@ class designModel extends model
}
/**
- * Get list.
+ * Get design list.
*
* @param int $productID
* @param string $type
diff --git a/module/programplan/control.php b/module/programplan/control.php
index ff6ee44aac..d3e60fbfba 100644
--- a/module/programplan/control.php
+++ b/module/programplan/control.php
@@ -11,14 +11,6 @@
*/
class programplan extends control
{
- /**
- * __construct
- *
- * @param string $moduleName
- * @param string $methodName
- * @access public
- * @return void
- */
public function __construct($moduleName = '', $methodName = '')
{
parent::__construct($moduleName, $methodName);
@@ -26,7 +18,7 @@ class programplan extends control
}
/**
- * Common action
+ * Common action.
*
* @param int $programID
* @param int $productID
@@ -44,7 +36,7 @@ class programplan extends control
}
/**
- * Browse programplans
+ * Browse programplans.
*
* @param int $programID
* @param int $productID
@@ -98,7 +90,7 @@ class programplan extends control
}
/**
- * Create a programplan
+ * Create a programplan.
*
* @param int $programID
* @param int $productID
@@ -140,7 +132,7 @@ class programplan extends control
}
/**
- * Edit a programplan
+ * Edit a programplan.
*
* @param int $planID
* @access public
@@ -176,7 +168,7 @@ class programplan extends control
}
/**
- * Delete a programplan
+ * Delete a programplan.
*
* @param int $planID
* @param string $confirm
@@ -204,7 +196,7 @@ class programplan extends control
}
/**
- * Ajax custom
+ * Ajax custom.
*
* @access public
* @return void
diff --git a/module/programplan/model.php b/module/programplan/model.php
index 77cc2adb3a..1683b7fb16 100644
--- a/module/programplan/model.php
+++ b/module/programplan/model.php
@@ -14,7 +14,7 @@
class programplanModel extends model
{
/**
- * Set menu
+ * Set menu.
*
* @param int $programID
* @param int $productID
@@ -27,7 +27,7 @@ class programplanModel extends model
}
/**
- * Get by id
+ * Get plan by id.
*
* @param int $planID
* @access public
@@ -41,7 +41,7 @@ class programplanModel extends model
}
/**
- * Get projects by product
+ * Get projects by productID.
*
* @param int $productID
* @access public
@@ -55,7 +55,7 @@ class programplanModel extends model
}
/**
- * Get list
+ * Get plans list.
*
* @param int $programID
* @param int $productID
@@ -82,7 +82,7 @@ class programplanModel extends model
}
/**
- * Get by list
+ * Get plans by idList.
*
* @param array $idList
* @access public
@@ -99,7 +99,7 @@ class programplanModel extends model
}
/**
- * Get plan pairs for budget
+ * Get plan pairs for budget.
*
* @param int $programID
* @access public
@@ -127,7 +127,7 @@ class programplanModel extends model
}
/**
- * Get plans
+ * Get plans.
*
* @param int $programID
* @param int $productID
@@ -151,7 +151,7 @@ class programplanModel extends model
}
/**
- * Get pairs
+ * Get pairs.
*
* @param int $programID
* @param int $productID
@@ -177,7 +177,7 @@ class programplanModel extends model
}
/**
- * Get gantt data
+ * Get gantt data.
*
* @param int $programID
* @param int $productID
@@ -322,7 +322,7 @@ class programplanModel extends model
}
/**
- * Get total percent
+ * Get total percent.
*
* @param int $plan
* @access public
@@ -343,7 +343,7 @@ class programplanModel extends model
}
/**
- * Process plans
+ * Process plans.
*
* @param int $plans
* @access public
@@ -360,7 +360,7 @@ class programplanModel extends model
}
/**
- * Process plan
+ * Process plan.
*
* @param int $plan
* @access public
@@ -401,7 +401,7 @@ class programplanModel extends model
}
/**
- * Get duration
+ * Get duration.
*
* @param int $begin
* @param int $end
@@ -415,7 +415,7 @@ class programplanModel extends model
}
/**
- * Create a plan
+ * Create a plan.
*
* @param int $programID
* @param int $parentID
@@ -598,7 +598,7 @@ class programplanModel extends model
}
/**
- * Update a plan
+ * Update a plan.
*
* @param int $planID
* @access public
@@ -686,7 +686,7 @@ class programplanModel extends model
}
/**
- * Print cell
+ * Print cell.
*
* @param int $col
* @param int $plan
@@ -793,7 +793,7 @@ class programplanModel extends model
}
/**
- * Is create task
+ * Is create task.
*
* @param int $planID
* @access public
@@ -806,7 +806,7 @@ class programplanModel extends model
}
/**
- * Is clickable
+ * Is clickable.
*
* @param int $plan
* @param int $action
@@ -824,7 +824,7 @@ class programplanModel extends model
}
/**
- * Get milestones
+ * Get milestones.
*
* @param int $programID
* @access public
@@ -842,7 +842,7 @@ class programplanModel extends model
}
/**
- * Get milestone by product
+ * Get milestone by product.
*
* @param int $productID
* @access public
@@ -861,7 +861,7 @@ class programplanModel extends model
}
/**
- * Is parent
+ * Is parent.
*
* @param int $planID
* @access public
@@ -874,7 +874,7 @@ class programplanModel extends model
}
/**
- * Get parent stage list
+ * Get parent stage list.
*
* @param int $planID
* @param int $productID
diff --git a/module/repo/control.php b/module/repo/control.php
index 3aa383874d..b8f7974b1d 100644
--- a/module/repo/control.php
+++ b/module/repo/control.php
@@ -325,7 +325,7 @@ class repo extends control
$logType = 'dir';
$revisions = $this->repo->getCommits($repo, $path, $revision, $logType, $pager);
- if($repo->SCM == 'Git' and $infos and empty($revisions)) $this->locate($this->repo->createLink('showSyncCommit', "repoID=$repoID&branch={$this->cookie->repoBranch}"));
+ if($repo->SCM == 'Git' and $infos and empty($revisions)) $this->locate($this->repo->createLink('showSyncCommit', "repoID=$repoID&branch=" . base64_encode($this->cookie->repoBranch)));
$commiters = $this->loadModel('user')->getCommiters();
foreach($infos as $info) $info->committer = zget($commiters, $info->account, $info->account);
foreach($revisions as $log) $log->committer = zget($commiters, $log->committer, $log->committer);
@@ -703,6 +703,7 @@ class repo extends control
{
$this->repo->setMenu($this->repos, $repoID);
if($repoID == 0) $repoID = $this->session->repoID;
+ if($branch) $branch = base64_decode($branch);
$this->view->title = $this->lang->repo->common . $this->lang->colon . $this->lang->repo->showSyncCommit;
$this->view->position[] = $this->lang->repo->showSyncCommit;
@@ -819,6 +820,7 @@ class repo extends control
$repo = $this->repo->getRepoByID($repoID);
if(empty($repo)) die();
if($repo->SCM != 'Git') die('finish');
+ if($branch) $branch = base64_decode($branch);
$this->scm->setEngine($repo);
diff --git a/module/repo/view/showsynccommit.html.php b/module/repo/view/showsynccommit.html.php
index 52d1a20158..796404f3dc 100644
--- a/module/repo/view/showsynccommit.html.php
+++ b/module/repo/view/showsynccommit.html.php
@@ -28,7 +28,7 @@ $(function(){
var link = createLink('repo', 'ajaxSyncCommit', "repoID=");
- var link = createLink('repo', 'ajaxSyncBranchCommit', "repoID=&branch=");
+ var link = createLink('repo', 'ajaxSyncBranchCommit', "repoID=&branch=");
function syncComments()
{
diff --git a/module/stage/control.php b/module/stage/control.php
index 440d7a99e7..fefa558edd 100644
--- a/module/stage/control.php
+++ b/module/stage/control.php
@@ -12,7 +12,7 @@
class stage extends control
{
/**
- * Browse designs
+ * Browse stages.
*
* @param string $orderBy
* @access public
@@ -30,7 +30,7 @@ class stage extends control
}
/**
- * Create a stage
+ * Create a stage.
*
* @access public
* @return void
@@ -63,7 +63,7 @@ class stage extends control
}
/**
- * Batch create
+ * Batch create stages.
*
* @access public
* @return void
@@ -95,7 +95,7 @@ class stage extends control
}
/**
- * Edit a stage
+ * Edit a stage.
*
* @param int $stageID
* @access public
@@ -132,7 +132,7 @@ class stage extends control
}
/**
- * Set type
+ * Set type.
*
* @access public
* @return void
@@ -160,7 +160,7 @@ class stage extends control
}
/**
- * Delete a stage
+ * Delete a stage.
*
* @param int $stageID
* @param string $confirm
diff --git a/module/stage/model.php b/module/stage/model.php
index 0914c4fea0..9d4bd1e366 100644
--- a/module/stage/model.php
+++ b/module/stage/model.php
@@ -14,7 +14,7 @@
class stageModel extends model
{
/**
- * Create a stage
+ * Create a stage.
*
* @access public
* @return int|bool
@@ -33,7 +33,7 @@ class stageModel extends model
}
/**
- * Batch create
+ * Batch create stages.
*
* @access public
* @return bool
@@ -64,7 +64,7 @@ class stageModel extends model
}
/**
- * Update a stage
+ * Update a stage.
*
* @param int $stageID
* @access public
@@ -86,7 +86,7 @@ class stageModel extends model
}
/**
- * Get stages
+ * Get stages.
*
* @param string $orderBy
* @access public
@@ -98,7 +98,7 @@ class stageModel extends model
}
/**
- * Get pairs
+ * Get pairs of stage.
*
* @access public
* @return array
@@ -117,7 +117,7 @@ class stageModel extends model
}
/**
- * Get by id
+ * Get a stage by id.
*
* @param int $stageID
* @access public
diff --git a/module/workestimation/control.php b/module/workestimation/control.php
index 32d6f61478..55352fcf42 100644
--- a/module/workestimation/control.php
+++ b/module/workestimation/control.php
@@ -12,7 +12,7 @@
class workestimation extends control
{
/**
- * Index
+ * Index.
*
* @param int $program
* @access public
diff --git a/module/workestimation/model.php b/module/workestimation/model.php
index b1f13a38ce..dbab68f3e7 100644
--- a/module/workestimation/model.php
+++ b/module/workestimation/model.php
@@ -12,7 +12,7 @@
class workestimationModel extends model
{
/**
- * Get a budget
+ * Get a budget.
*
* @param int $program
* @access public
@@ -24,7 +24,7 @@ class workestimationModel extends model
}
/**
- * Get program scale
+ * Get program scale.
*
* @param int $program
* @access public
@@ -38,7 +38,7 @@ class workestimationModel extends model
}
/**
- * Save a budget
+ * Save a budget.
*
* @param int $program
* @access public