Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
do not post empty point in kiezkassen proposal (see #1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Bengfort committed May 13, 2015
1 parent 2eb838c commit ffdca46
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ var fill = (
proposalVersion.data[SIDescription.nick] = new SIDescription.Sheet({
description: scope.data.detail
});
proposalVersion.data[SIPoint.nick] = new SIPoint.Sheet({
coordinates: [scope.data.lng, scope.data.lat]
});
if (scope.data.lng && scope.data.lat) {
proposalVersion.data[SIPoint.nick] = new SIPoint.Sheet({
coordinates: [scope.data.lng, scope.data.lat]
});
}
};

var postCreate = (
Expand Down

0 comments on commit ffdca46

Please sign in to comment.