Skip to content

Commit

Permalink
Fix link to create sub-task from a task view.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Sep 26, 2014
1 parent 6dcb99e commit ea13cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nag/templates/view/task.inc
Expand Up @@ -7,7 +7,7 @@
<?php if (!$task->private || $task->owner == $GLOBALS['registry']->getAuth()): ?>
<li class="horde-icon"><?php echo Horde::widget(array('url' => $taskurl->add('actionID', 'modify_task'), 'title' => _("_Edit"), 'class' => 'nag-edit')) ?></li>
<?php endif ?>
<li class="horde-icon"><?php echo Horde::widget(array('url' => Horde::url('task.php', true)->add(array('actionID' => 'add_task', 'parent_task' => $task->id)), 'title' => _("Create Subtask"), 'class' => 'nag-new')) ?></li>
<li class="horde-icon"><?php echo Horde::widget(array('url' => Horde::url('task.php', true)->add(array('actionID' => 'add_task', 'tasklist_id' => $task->tasklist, 'parent_task' => $task->id)), 'title' => _("Create Subtask"), 'class' => 'nag-new')) ?></li>
<?php endif ?>
<?php if ($share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::DELETE)): ?>
<li class="horde-icon"><?php echo Horde::widget(array('url' => $taskurl->add('actionID', 'delete_task'), 'onclick' => $prefs->getValue('delete_opt') ? 'return window.confirm(\'' . addslashes(_("Really delete this task?")) . '\');' : '', 'title' => _("_Delete"), 'class' => 'nag-delete')) ?></li>
Expand Down

0 comments on commit ea13cee

Please sign in to comment.