X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0166abe88a2c082500f208d6f6be1343e6d0bedd..17a7c69e8dfefb5dda2a9f57d6ea3c879d4568f4:/app/controllers/amf_controller.rb?ds=sidebyside 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