Resolves regression seen in #93

This commit is contained in:
Daniel Munn 2013-01-18 23:32:09 +00:00
parent 7a9c3227c0
commit 6633c9b0c8

View File

@ -354,7 +354,7 @@ class DmsfFile < ActiveRecord::Base
next if dmsf_attrs.length == 0 || id_attribute == 0 next if dmsf_attrs.length == 0 || id_attribute == 0
next unless results.select{|f| f.id.to_s == id_attribute}.empty? next unless results.select{|f| f.id.to_s == id_attribute}.empty?
dmsf_file = DmsfFile.where(limit_options[:conditions]).where(:id => dmsf_attrs[2], :deleted => false).first dmsf_file = DmsfFile.where(limit_options[:conditions]).where(:id => id_attribute, :deleted => false).first
if !dmsf_file.nil? if !dmsf_file.nil?
if options[:offset] if options[:offset]