From: Richard Fairhurst Date: Wed, 6 Feb 2008 22:43:14 +0000 (+0000) Subject: unbreak undelete X-Git-Tag: live~7907 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/dd396a773eeb62f622dfa9e2540ad98a754d24c0?hp=b75768ba81f2d230928f27e11b3ee8757a70f067 unbreak undelete --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index ac0809219..11594c436 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -560,7 +560,7 @@ class AmfController < ApplicationController # Get the latest version id of a way def getlastversion(id,version) #:doc: - old_way = OldWay.find(:first, :conditions => ['id = ?' , id], :order => 'version DESC') + old_way = OldWay.find(:first, :conditions => ['visible=1 AND id=?' , id], :order => 'version DESC') old_way.version end