[ditz-talk] [PATCH] Make issue-labeling write correct label info

Daniel Kalør daniel at kalor.dk
Fri Nov 14 02:20:48 EST 2008


The info written when adding an issue was malformed
---
 lib/ditz/plugins/issue-labeling.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/ditz/plugins/issue-labeling.rb b/lib/ditz/plugins/issue-labeling.rb
index 15b79fd..5a7d1d2 100644
--- a/lib/ditz/plugins/issue-labeling.rb
+++ b/lib/ditz/plugins/issue-labeling.rb
@@ -56,7 +56,7 @@ class Issue
   field :labels, :multi => true, :interactive_generator => :get_labels
 
   def get_labels config, project
-    ask_for_selection(project.labels, "label", :name, true).map {|x|x.name}
+    ask_for_selection(project.labels, "label", :name, true).map {|x|x}
   end
 
   def apply_labels new_labels, who, comment
-- 
1.6.0.3



More information about the ditz-talk mailing list