From dd396a773eeb62f622dfa9e2540ad98a754d24c0 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Wed, 6 Feb 2008 22:43:14 +0000 Subject: [PATCH 1/1] unbreak undelete --- app/controllers/amf_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2