unbreak undelete
This commit is contained in:
parent
b75768ba81
commit
dd396a773e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue