myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [1944] trunk/app/controllers/tags_controller.rb:


From: noreply
Subject: [myexperiment-hackers] [1944] trunk/app/controllers/tags_controller.rb: Bug-fix: multiple taggings on an item would cause it to appear multiple times in the search results , when browsing by tags.
Date: Tue, 11 Nov 2008 12:34:56 -0500 (EST)

Revision
1944
Author
alekses6
Date
2008-11-11 12:34:55 -0500 (Tue, 11 Nov 2008)

Log Message

Bug-fix: multiple taggings on an item would cause it to appear multiple times in the search results, when browsing by tags.

Modified Paths

Diff

Modified: trunk/app/controllers/tags_controller.rb (1943 => 1944)


--- trunk/app/controllers/tags_controller.rb	2008-11-11 16:26:10 UTC (rev 1943)
+++ trunk/app/controllers/tags_controller.rb	2008-11-11 17:34:55 UTC (rev 1944)
@@ -70,6 +70,8 @@
           @tagged_with << t.taggable
         end
       end
+      
+      @tagged_with = @tagged_with.uniq
     else
       error("Tag not found", "is invalid")
     end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]