Project

General

Profile

Actions

Maintenance #3056

closed

xmera Omnia - Collection #3083: Update to RM 5.1.7

Check views/queries/_query_form.html.erb

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/views/queries/_query_form.html.erb b/app/views/queries/_query_form.html.erb
index fda9d8019..56c8cd41c 100644
--- a/app/views/queries/_query_form.html.erb
+++ b/app/views/queries/_query_form.html.erb
@@ -63,9 +63,8 @@
     <% end %>
   <% else %>
     <% if @query.editable_by?(User.current) %>
-      <% redirect_params = (controller_name == 'admin' && action_name == 'projects') ? {:admin_projects => 1} : {} %>
-      <%= link_to l(:button_edit_object, object_name: l(:label_query)).capitalize, edit_query_path(@query, redirect_params), :class => 'icon icon-edit' %>
-      <%= delete_link query_path(@query, redirect_params), {}, l(:button_delete_object, object_name: l(:label_query)).capitalize %>
+      <%= link_to l(:button_edit_object, object_name: l(:label_query)).capitalize, edit_query_path(@query), :class => 'icon icon-edit' %>
+      <%= delete_link query_path(@query), {}, l(:button_delete_object, object_name: l(:label_query)).capitalize %>
     <% end %>
   <% end %>
 </p>
Actions #1

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 #2

Updated by liaham 22 days ago

  • Parent task set to #3083
Actions

Also available in: Atom PDF