]> git.cworth.org Git - sup/commitdiff
minor label bugfix
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 28 Oct 2007 17:47:28 +0000 (17:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 28 Oct 2007 17:47:28 +0000 (17:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@642 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/label.rb

index 39a682acca90fedcf9a9497ea3a2986698d9fd3f..4afc0f9c31e7ab081939e5813e3a6a2a89f160cb 100644 (file)
@@ -32,7 +32,8 @@ class LabelManager
   ## nicely and converted to pretty strings. use #label_for to recover
   ## the original label.
   def listable_labels
-    LISTABLE_RESERVED_LABELS + @labels.keys
+    ## uniq's only necessary here because of certain upgrade issues
+    (LISTABLE_RESERVED_LABELS + @labels.keys).uniq
   end
 
   ## all apply-able (user-defined and system listable) labels, ordered