Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

show data which is zero when we filter 'none'

bsatarnejad27d93a30c4c8
diff --git a/app/models/queries/operators/none.rb b/app/models/queries/operators/none.rb
index 406b9625023..08a4e7686b2 100644
--- a/app/models/queries/operators/none.rb
+++ b/app/models/queries/operators/none.rb
@@ -34,7 +34,7 @@ module Queries::Operators
require_value false
def self.sql_for_field(_values, db_table, db_field)
- "#{db_table}.#{db_field} IS NULL"
+ "#{db_table}.#{db_field} IS NULL OR #{db_table}.#{db_field}=0"
end
end
end