File tree Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,24 @@ def build_tags
78
78
default_priority = nil
79
79
IssuePriority . active . each do |priority |
80
80
priorities . append ( {
81
- item : priority . name
81
+ item : {
82
+ label : priority . name ,
83
+ value : priority . id . to_s
84
+ }
82
85
} )
83
86
if priority . is_default
84
- default_priority = priority . name
87
+ default_priority = priority . id . to_s
85
88
end
86
89
end
87
90
# Issue categories
88
91
categories = [ ]
89
92
if @project . present?
90
93
@project . issue_categories . each do |category |
91
94
categories . append ( {
92
- item : category . name
95
+ item : {
96
+ label : category . name ,
97
+ value : category . id . to_s
98
+ }
93
99
} )
94
100
end
95
101
end
@@ -99,11 +105,14 @@ def build_tags
99
105
if @project . present?
100
106
@project . versions . each do |version |
101
107
versions . append ( {
102
- item : version . name
108
+ item : {
109
+ label : version . name ,
110
+ value : version . id . to_s
111
+ }
103
112
} )
104
113
end
105
114
if @project . default_version . present?
106
- default_version = @project . default_version . name
115
+ default_version = @project . default_version . id
107
116
end
108
117
end
109
118
# Trackers
@@ -115,7 +124,10 @@ def build_tags
115
124
if @project . blank? and project_ids . present?
116
125
Project . where ( id : project_ids ) . sort . each { |project |
117
126
projects . append ( {
118
- item : project . name
127
+ item : {
128
+ label : project . name ,
129
+ value : project . id . to_s
130
+ }
119
131
} )
120
132
}
121
133
end
@@ -230,7 +242,10 @@ def build_tags
230
242
done_ratios = [ ]
231
243
0 . step ( 100 , 10 ) { |ratio |
232
244
done_ratios . append ( {
233
- item : "#{ ratio } %"
245
+ item : {
246
+ label : "#{ ratio } %" ,
247
+ value : ratio . to_s
248
+ }
234
249
} )
235
250
}
236
251
formitems . append ( {
@@ -239,7 +254,7 @@ def build_tags
239
254
values : {
240
255
items : done_ratios
241
256
} ,
242
- value : "0 % " ,
257
+ value : "0" ,
243
258
type : "stringcombo"
244
259
} )
245
260
end
You can’t perform that action at this time.
0 commit comments