Resolution attempt for #46

all entities are listed including deleted items (which may have no revisions as a result of deletion)
if we call for the scoped listing with .visible should remove deleted items and rectify issue.
This commit is contained in:
Daniel Munn 2012-09-04 11:36:12 +02:00
parent c253c04bfc
commit e46d07e8a2

View File

@ -68,8 +68,8 @@ class DmsfZip
rescue
end
@zip_file.put_next_entry(string_path)
folder.subfolders.each { |subfolder| self.add_folder(subfolder, root_path) }
folder.files.each { |file| self.add_file(file, root_path) }
folder.subfolders.visible.each { |subfolder| self.add_folder(subfolder, root_path) }
folder.files.visible.each { |file| self.add_file(file, root_path) }
end
end