Project

General

Profile

Actions

Maintenance #3045

closed

xmera Omnia - Collection #3083: Update to RM 5.1.7

Check queries_helper

Added by liaham 26 days ago. Updated 22 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
03/17/2025
Due date:
03/17/2025
% Done:

100%

Estimated time:
Compatible Redmine Version:
5.1.z

Description

diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 80a4a00bd..829e2f370 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -474,8 +474,6 @@ module QueriesHelper
     url_params =
       if controller_name == 'issues'
         {:controller => 'issues', :action => 'index', :project_id => @project}
-      elsif controller_name == 'admin' && action_name == 'projects'
-        {:admin_projects => '1'}
       else
         {}
       end
diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb
index d60098c06..1bad524dc 100644
--- a/app/models/issue_priority.rb
+++ b/app/models/issue_priority.rb
@@ -60,11 +60,15 @@ class IssuePriority < Enumeration
   end
 
   def high?
-    position > self.class.default_or_middle.position
+    return false unless (baseline_position = self.class.default_or_middle&.position)
+
+    position > baseline_position
   end
 
   def low?
-    position < self.class.default_or_middle.position
+    return false unless (baseline_position = self.class.default_or_middle&.position)
+
+    position < baseline_position
   end
 
   # Updates position_name for active priorities
Actions #1

Updated by liaham 25 days ago

Actions #2

Updated by liaham 25 days ago

Actions #3

Updated by liaham 22 days ago

  • Due date set to 03/17/2025
  • Status changed from New to Closed
  • Assignee set to liaham
  • Start date set to 03/17/2025
  • % Done changed from 0 to 100
Actions #4

Updated by liaham 22 days ago

  • Parent task set to #3083
Actions

Also available in: Atom PDF