From: Michael J. Rubinsky Date: Wed, 6 May 2009 15:50:55 +0000 (-0400) Subject: Only consider the current user's tags while auto completing, not X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e4eaf7827a8b821965306b8be4fcbc7a410cbddb;p=horde.git Only consider the current user's tags while auto completing, not the entire tag set. --- diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index 802d3a5c0..923f82582 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -181,17 +181,18 @@ class Kronolith_Tagger } /** - * Search for resources are tagged with all of the requested tags. + * Search for resources that are tagged with all of the requested tags. * * @param array $tags An array of tag_names. */ - public function search($tags, $content_type = null) + public function search($tags, $content_type = null, $userId = null) { } /** - * List tags beginning with $token. Used for autocomplete code. + * List tags belonging to the current user beginning with $token. + * Used for autocomplete code. * * @param string $token The token to match the start of the tag with. * @@ -199,7 +200,7 @@ class Kronolith_Tagger */ public function listTags($token) { - return self::$_tagger->getTags(array('q' => $token)); + return self::$_tagger->getTags(array('q' => $token, 'userId' => Auth::getAuth())); } /**