]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Potlatch 1.3e with experimental tagfinder
[rails.git] / app / controllers / amf_controller.rb
index 2aac00d5ed81326736671c0c3bb2073afe97b695..e3ee92ff019428227523396a8e2432651f3f1427 100644 (file)
@@ -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