diff --git a/lib/doing/items/filter.rb b/lib/doing/items/filter.rb index 5a2465c9..f9caa8e5 100644 --- a/lib/doing/items/filter.rb +++ b/lib/doing/items/filter.rb @@ -11,7 +11,7 @@ class Items < Array # def in_section(section) sect = section.is_a?(Section) ? section.title : section - if section =~ /^all$/i + if sect =~ /^all$/i dup else items = Items.new.concat(select { |item| !item.nil? && item.section == section }) diff --git a/lib/doing/version.rb b/lib/doing/version.rb index 03f3efb9..53707004 100644 --- a/lib/doing/version.rb +++ b/lib/doing/version.rb @@ -1,3 +1,3 @@ module Doing - VERSION = '2.1.67' + VERSION = '2.1.68' end