From: <jon...@us...> - 2011-04-25 17:28:19
|
Revision: 34118 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=34118&view=rev Author: jonnybradley Date: 2011-04-25 17:28:13 +0000 (Mon, 25 Apr 2011) Log Message: ----------- [FIX] trackers: Various - missing param, global and library, also remove undefined var in get_item_value() and correct logic Modified Paths: -------------- branches/7.x/lib/trackers/trackerlib.php Modified: branches/7.x/lib/trackers/trackerlib.php =================================================================== --- branches/7.x/lib/trackers/trackerlib.php 2011-04-25 17:10:26 UTC (rev 34117) +++ branches/7.x/lib/trackers/trackerlib.php 2011-04-25 17:28:13 UTC (rev 34118) @@ -500,14 +500,12 @@ if ($row['lang'] == $prefs['language']) { return $row['value']; } - - $ret = $res['value']; } - } else { - if ($res = reset($result)) { - $ret = $res['value']; - } } + + if ($res = reset($result)) { + $ret = $res['value']; + } return $ret; } @@ -3096,7 +3094,7 @@ $categlib->remove_category($currentCategId); } - foreach ($this->get_all_tracker_items() as $itemId) { + foreach ($this->get_all_tracker_items($trackerId) as $itemId) { $this->remove_tracker_item($itemId); } @@ -3918,6 +3916,7 @@ function get_user_item(&$trackerId, $trackerOptions, $userparam=null, $user= null, $status='') { global $prefs; $tikilib = TikiLib::lib('tiki'); + $userlib = TikiLib::lib('user'); if (empty($user)) { $user = $GLOBALS['user']; } @@ -4314,7 +4313,7 @@ return false; } function fieldId_is_editable($field, $item) { - global $tiki_p_admin_trackers; + global $tiki_p_admin_trackers, $user; if ($tiki_p_admin_trackers == 'y') { return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |