From: <jon...@us...> - 2010-11-30 19:00:31
|
Revision: 30958 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=30958&view=rev Author: jonnybradley Date: 2010-11-30 19:00:25 +0000 (Tue, 30 Nov 2010) Log Message: ----------- [ENH] user tracker: Show link to create user tracker item if none is found Modified Paths: -------------- branches/6.x/tiki-view_tracker_item.php Modified: branches/6.x/tiki-view_tracker_item.php =================================================================== --- branches/6.x/tiki-view_tracker_item.php 2010-11-30 18:33:09 UTC (rev 30957) +++ branches/6.x/tiki-view_tracker_item.php 2010-11-30 19:00:25 UTC (rev 30958) @@ -116,6 +116,13 @@ } if (!empty($_REQUEST['trackerId']) && !empty($fieldId)) { $_REQUEST['itemId'] = $trklib->get_item_id($_REQUEST['trackerId'], $fieldId, $_REQUEST['user']); + if (!$_REQUEST['itemId']) { + $smarty->assign('msg', tra("You don't have a personal tracker item yet. Click here to make one:") . + '<br /><a href="tiki-view_tracker.php?trackerId=' . $_REQUEST['trackerId'] . '&cookietab=2">' . + tra('Create tracker item') . '</a>'); + $smarty->display("error.tpl"); + die; + } } } if ((!isset($_REQUEST["trackerId"]) || !$_REQUEST["trackerId"]) && isset($_REQUEST["itemId"])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |