summaryrefslogtreecommitdiff
path: root/app/Helper/SubtaskHelper.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-17 22:25:18 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-17 22:25:18 -0400
commit46ed06268dc3d591fb7bb90a5a9a75e77c17b86c (patch)
tree4e4cc7d42bed1d5ca5e1c9d65415def3161cad2c /app/Helper/SubtaskHelper.php
parent996997a12d1b435956a96640eb6cf39045f6ef46 (diff)
Rename subtask controller
Diffstat (limited to 'app/Helper/SubtaskHelper.php')
-rw-r--r--app/Helper/SubtaskHelper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Helper/SubtaskHelper.php b/app/Helper/SubtaskHelper.php
index afa3c14e..dac71203 100644
--- a/app/Helper/SubtaskHelper.php
+++ b/app/Helper/SubtaskHelper.php
@@ -36,18 +36,18 @@ class SubtaskHelper extends Base
*/
public function toggleStatus(array $subtask, $project_id, $refresh_table = false)
{
- if (! $this->helper->user->hasProjectAccess('subtask', 'edit', $project_id)) {
+ if (! $this->helper->user->hasProjectAccess('SubtaskController', 'edit', $project_id)) {
return $this->getTitle($subtask);
}
$params = array('task_id' => $subtask['task_id'], 'subtask_id' => $subtask['id'], 'refresh-table' => (int) $refresh_table);
if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress) {
- return $this->helper->url->link($this->getTitle($subtask), 'SubtaskRestriction', 'popover', $params, false, 'popover');
+ return $this->helper->url->link($this->getTitle($subtask), 'SubtaskRestrictionController', 'show', $params, false, 'popover');
}
$class = 'subtask-toggle-status '.($refresh_table ? 'subtask-refresh-table' : '');
- return $this->helper->url->link($this->getTitle($subtask), 'SubtaskStatus', 'change', $params, false, $class);
+ return $this->helper->url->link($this->getTitle($subtask), 'SubtaskStatusController', 'change', $params, false, $class);
}
public function selectTitle(array $values, array $errors = array(), array $attributes = array())