From: <mo...@us...> - 2005-01-27 16:29:43
|
Update of /cvsroot/tikiwiki/tiki/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18848/tikiwiki/modules Modified Files: Tag: BRANCH-1-9 mod-user_tasks.php Log Message: Fixed bug in task rights by creator Index: mod-user_tasks.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/modules/mod-user_tasks.php,v retrieving revision 1.8.2.6 retrieving revision 1.8.2.7 diff -u -d -r1.8.2.6 -r1.8.2.7 --- mod-user_tasks.php 27 Jan 2005 15:04:24 -0000 1.8.2.6 +++ mod-user_tasks.php 27 Jan 2005 16:29:29 -0000 1.8.2.7 @@ -29,7 +29,28 @@ if (isset($_REQUEST["modTasksSave"])) { - $tasklib->replace_task($user, 0, $_REQUEST['modTasksTitle'], $_REQUEST['modTasksTitle'], date("U"), 'o', 3, 0, 0); + $task = $tasklib->get_default_new_task($user); + $tasklib->write_task_in_db( $task['taskId'], + $task['task_version'], + $task['user'], + $task['creator'], + $task['public_for_group'], + $task['rights_by_creator'], + $task['priority'], + $task['completed'], + $task['deleted'], + $task['created'], + $task['status'], + $task['percentage'], + $task['accepted_creator'], + $task['accepted_user'], + /*--history --*/ + $_REQUEST['modTasksTitle'], + $task['description'], + $task['start'], + $task['end'], + $task['lasteditor'], + $task['lastchanges']); } $ownurl =/*httpPrefix().*/ $_SERVER["REQUEST_URI"]; |