I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

extended_queries_helper_patch.rb

Massimo Rossello, 22 May 2014 12:45

Download (631 Bytes)

 
1
diff --git a/lib/extended_queries_helper_patch.rb b/lib/extended_queries_helper_patch.rb
2
index 659f44e..0fa1566 100644
3
--- a/lib/extended_queries_helper_patch.rb
4
+++ b/lib/extended_queries_helper_patch.rb
5
@@ -24,7 +24,7 @@ module ExtendedQueriesHelperPatch
6
                 if column.custom_field.visible_by?(issue.project, User.current)
7
                     value = issue.custom_field_values.detect{ |value| value.custom_field_id == column.custom_field.id }
8
 
9
-                    h(show_value(value))
10
+                    h(show_value(value)) unless value.nil?
11
                 else
12
                     nil
13
                 end
Terms of use | Privacy policy