Skip to content

Commit 67a6a8a

Browse files
committed
fixed issues json attributes
1 parent dc2f149 commit 67a6a8a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/redmine_gtt_print/issues_to_json.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ def call
3737

3838
if (features = @issues.map(&:geodata_for_print).compact).any?
3939
# TODO determine a proper center for the whole set of features
40-
center = features.first[:center]
41-
hsh[:attributes][:map] = IssueToJson.map_data(
42-
center,
43-
features.map{|f| f[:geojson] }
44-
)
40+
#center = features.first[:center]
41+
#hsh[:attributes][:map] = IssueToJson.map_data(
42+
# center,
43+
# features.map{|f| f[:geojson] }
44+
#)
4545
end
4646

4747
hsh.to_json
@@ -51,7 +51,7 @@ def call
5151

5252
def issue_to_data_row(i)
5353
[
54-
i.id,
54+
i.id.to_s,
5555
i.status.name,
5656
i.start_date,
5757
i.created_on,

0 commit comments

Comments
 (0)