View Full Version : adding more options to the status of a task
hi,
How can I modify the drop-down list for task status in the edit task web page? Currently the status of a task can be either 'active' or 'inactive'. Can I add more options to this drop-down list?
tapan.
ajdonnison
24-05-04, 02:18 PM
I'm pretty sure if you search the forums you will find the answer, however in short you can use System Admin and edit the System Lookup Values, adding your status to the TaskStatus select list.
zygosis
24-05-04, 06:19 PM
use System Admin and edit the System Lookup Values, adding your status to the TaskStatus select list.
Doesn't work for me :cry:
Cheers
David
Mathias
24-05-04, 09:52 PM
easy to handle in addedit.php, add in line 53,
$status = dPgetSysVal( 'TaskStatus' );
this allows you to manage own TaskStatus-list in System Admin / System Lookup Values.
Also change in tasks.php:
Line 127,
before:
$where .= "\n AND task_status = '$task_status'";
after
if ($task_status == -1)
$where .= "\n AND task_status = '$task_status'";
else
$where .= "\n AND task_status > '-1'";
This shows inactive tasks as usual and all other tasks in "active tasks".
Important: You have to start your own Task Status-list with
"-1|inactive"
followed by
"0|...
1|..."
Hope that helps...
Greetings
Mathias
zygosis
24-05-04, 10:43 PM
Works perfectly. Many thanks.
David
vBulletin® v3.6.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.