Patch: Allow completion of tasks before due date.
Brian Keifer <[email protected]> Thu, 23 Jan 2003 14:16:53 -0500
| Newsgroups | gmane.comp.horde.nag |
|---|---|
| Message-ID | <[email protected]> |
Hi, all. Attached is a patch that enables the 'complete this task' button in the nag list view for tasks with future due dates. Previously, it was only available on tasks that had no due date and tasks whose due dates had passed. -Brian -- When all else fails, there's always delusion. --Conan O'Brien -- Nag mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
nag_allow_completion_before_due.diff
(text/diff, 918 B)
Index: templates/list/task_summaries.inc
===================================================================
RCS file: /usr/home/cvs/horde/nag/templates/list/task_summaries.inc,v
retrieving revision 1.27
diff -u -r1.27 task_summaries.inc
--- templates/list/task_summaries.inc 13 Jan 2003 21:54:57 -0000 1.27
+++ templates/list/task_summaries.inc 23 Jan 2003 19:01:26 -0000
@@ -6,7 +6,7 @@
</a>
<?php endif; ?>
- <?php if ($share->hasPermission(Auth::getAuth(), _PERMS_EDIT) && empty($task['completed']) && $task['due'] < time()): ?>
+ <?php if ($share->hasPermission(Auth::getAuth(), _PERMS_EDIT) && empty($task['completed'])): ?>
<?php echo Horde::link(Horde::applicationUrl(Horde::addParameter($taskurl, 'actionID=' . NAG_COMPLETE_TASKS)), _("Complete Task"), 'widget') ?>
<?php echo Horde::img('complete.gif', _("Complete Task")) ?>
</a>