Skip to content

Commit cdae35a

Browse files
authored
Merge pull request #46 from gtt-project/hotfix/missing_poi_in_gtt_print
Fixed missing POI issue in gtt_print plugin
2 parents 32b4ef0 + eebe7f0 commit cdae35a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/redmine_gtt/patches/geojson_attribute.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def geojson
7272
# doing a single select for each issue
7373
def geodata_for_print
7474
if row = self.class.where(id: id).where.not(geom: nil).
75-
pluck(Arel.sql("ST_AsGeoJson(ST_Transform(geom, 3857)) as geojson, ST_Transform(ST_Centroid(geom), 3857) as center")).
75+
pluck(Arel.sql("ST_AsGeoJson(ST_Transform(geom, 3857), 9, 0) as geojson, ST_Transform(ST_Centroid(geom), 3857) as center")).
7676
first
7777
json, center = *row
7878
{

0 commit comments

Comments
 (0)