Skip to content

Commit fb881fc

Browse files
committed
fix #206 (cannot duplicate trip patterns).
1 parent 5e81c8a commit fb881fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: public/javascripts/views/route-trippatterns-view.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@ var GtfsEditor = GtfsEditor || {};
668668
originalTpData.id = null;
669669
originalTpData.name = this.$('[name=name]').val();
670670
originalTpData.patternStops = _.map(originalTpData.patternStops, function(data){
671-
data.id = null;
672-
return data;
671+
return _.clone(data);
673672
});
674673

675674
var view = this;

0 commit comments

Comments
 (0)