From e46d07e8a29223c734b9aa430a34c139d505ce88 Mon Sep 17 00:00:00 2001 From: Daniel Munn Date: Tue, 4 Sep 2012 11:36:12 +0200 Subject: [PATCH] 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. --- lib/dmsf_zip.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dmsf_zip.rb b/lib/dmsf_zip.rb index 45bdc18f..d46cbcca 100644 --- a/lib/dmsf_zip.rb +++ b/lib/dmsf_zip.rb @@ -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 \ No newline at end of file