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

simplify not fetching any entries

ulferts16d8a97633e8
diff --git a/app/contracts/time_entries/base_contract.rb b/app/contracts/time_entries/base_contract.rb
index accbf143695..951d86ef635 100644
--- a/app/contracts/time_entries/base_contract.rb
+++ b/app/contracts/time_entries/base_contract.rb
@@ -69,7 +69,7 @@ module TimeEntries
def assignable_activities
if !model.project
- TimeEntryActivity.where('1=0')
+ TimeEntryActivity.none
else
TimeEntryActivity::Scopes::ActiveInProject.fetch(model.project)
end