I found the need to have a "My Projects" link to show all tasks for which you are the leader of the project.
This comes in very handy when you have to assign a bunch of tasks to different people, you can monitor all of them as long as you are the project leader.
Until this, you had to go to each user in the project and view their tasks independently.
If you are interested in doing this, it is quite a simple modification:
header.php // add my projects link
<div id="rightmenu">
<a href="<?php echo Tzn::concatUrl($_SESSION['linkItems'],'sUser=myprojects'); ?>">My Projects</a> |
<a href="<?php echo Tzn::concatUrl($_SESSION['linkItems'],'sUser='.$objUser->id); ?>"><?php echo $langMenu['my_tasks']; ?></a> |
<a href="<?php echo Tzn::concatUrl($_SESSION['linkItems'],'sUser=all'); ?>"><?php echo $langMenu['all_users']; ?></a> |
index.php
Change if($pUser){ to an "elseif" and add "if" above it:
if($_REQUEST['sUser'] == 'myprojects' && $_SESSION['selUser']){
$objItemList->addWhere('ii.authorId='.$_SESSION['selUser']);
}
elseif ($pUser) {
Now when you click on the "My Projects" link, it will give you a complete list of tasks for which the current user is the project leader.