fix problem with mappings and forking maps

This commit is contained in:
Devin Howard 2015-10-23 22:07:44 +08:00
parent eb7ba35e14
commit 588b62b942

View file

@ -135,7 +135,7 @@ class MapsController < ApplicationController
@mapping = Mapping.new()
@mapping.user = @user
@mapping.map = @map
@mapping.topic = Topic.find(topic[0])
@mapping.mappable = Topic.find(topic[0])
@mapping.xloc = topic[1]
@mapping.yloc = topic[2]
@mapping.save
@ -148,7 +148,7 @@ class MapsController < ApplicationController
@mapping = Mapping.new()
@mapping.user = @user
@mapping.map = @map
@mapping.synapse = Synapse.find(synapse_id)
@mapping.mappable = Synapse.find(synapse_id)
@mapping.save
end
end