lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.26.1 vs lib/checkoff/internal/task_selector_evaluator.rb in checkoff-0.27.0
- old
+ new
@@ -133,10 +133,12 @@
end
def evaluate(task, custom_field_gid, custom_field_values_gids)
actual_custom_field_values_gids = pull_custom_field_values_gids(task, custom_field_gid)
- (custom_field_values_gids - actual_custom_field_values_gids).empty?
+ actual_custom_field_values_gids.any? do |custom_field_value|
+ custom_field_values_gids.include?(custom_field_value)
+ end
end
private
def pull_enum_values(custom_field)