From 356af38024949813987cebc5c9f524c4f10a26d9 Mon Sep 17 00:00:00 2001 From: "karel.picman@lbcfree.net" Date: Wed, 19 Aug 2020 10:24:15 +0200 Subject: [PATCH] Deleting of all projects filter error --- lib/redmine_dmsf/patches/queries_controller_patch.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/redmine_dmsf/patches/queries_controller_patch.rb b/lib/redmine_dmsf/patches/queries_controller_patch.rb index 788bdab7..f6fbb9d0 100644 --- a/lib/redmine_dmsf/patches/queries_controller_patch.rb +++ b/lib/redmine_dmsf/patches/queries_controller_patch.rb @@ -29,7 +29,11 @@ module RedmineDmsf private def redirect_to_dmsf_query(options) + if @project redirect_to dmsf_folder_path(@project, options) + else + redirect_to home_path(options) + end end end