X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/279ab7f911439cd2cb185a5d89955d89687772cc..ce85092f57e985925876dea7a455ef5e897b8127:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 2aac00d5e..e3ee92ff0 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -187,7 +187,7 @@ class AmfController < ApplicationController # close previous changeset and add comment if closeid - cs = Changeset.find(closeid) + cs = Changeset.find(closeid.to_i) cs.set_closed_time_now if cs.user_id!=user.id raise OSM::APIUserChangesetMismatchError.new