New UI: Saving Query -> Internal Server Error #1121

This commit is contained in:
karel.picman@lbcfree.net 2020-05-21 14:34:31 +02:00
parent b6b0f9f135
commit d5b2f69c83
6 changed files with 82 additions and 1 deletions

View File

@ -0,0 +1,25 @@
<%
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright © 2011 Vít Jonáš <vit.jonas@gmail.com>
# Copyright © 2012 Daniel Munn <dan.munn@munnster.co.uk>
# Copyright © 2011-20 Karel Pičman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
<%= render_sidebar_queries DmsfQuery, @project %>

View File

@ -84,3 +84,7 @@
<%= f.link_to 'CSV', url: { action: :show, id: @project, dmsf_folder_id: @folder } %> <%= f.link_to 'CSV', url: { action: :show, id: @project, dmsf_folder_id: @folder } %>
<% end %> <% end %>
<% end %> <% end %>
<% content_for :sidebar do %>
<%= render partial: 'dmsf/sidebar' %>
<% end %>

View File

@ -43,3 +43,7 @@
<span class="pagination"><%= pagination_links_full @dmsf_pages, @dmsf_count %></span> <span class="pagination"><%= pagination_links_full @dmsf_pages, @dmsf_count %></span>
<%= context_menu %> <%= context_menu %>
<% content_for :sidebar do %>
<%= render partial: 'dmsf/sidebar' %>
<% end %>

View File

@ -343,10 +343,17 @@ div[id*="revision_access_"] {
} }
/* EasyExtensions - font icons */ /* EasyExtensions - font icons */
.icon-actions::before { table.dmsf > tbody > tr > td a.icon-actions::before {
content: "\F1D8"; content: "\F1D8";
} }
#sidebar ul > li > a.icon-only.icon-clear-query {
background-image: url(../../../images/close_hl.png);
background-repeat: no-repeat;
padding-left: 16px;
margin-left: 8px;
}
table.dmsf a.sort { table.dmsf a.sort {
padding-right: 16px; padding-right: 16px;
background-position: 100% 50%; background-position: 100% 50%;

View File

@ -38,6 +38,7 @@ require 'redmine_dmsf/patches/user_preference_patch'
require 'redmine_dmsf/patches/user_patch' require 'redmine_dmsf/patches/user_patch'
require 'redmine_dmsf/patches/issue_patch' require 'redmine_dmsf/patches/issue_patch'
require 'redmine_dmsf/patches/role_patch' require 'redmine_dmsf/patches/role_patch'
require 'redmine_dmsf/patches/queries_controller_patch'
if defined?(EasyExtensions) if defined?(EasyExtensions)
require 'redmine_dmsf/patches/easy_crm_case_patch' require 'redmine_dmsf/patches/easy_crm_case_patch'

View File

@ -0,0 +1,40 @@
# encoding: utf-8
# frozen_string_literal: true
#
# Redmine plugin for Document Management System "Features"
#
# Copyright © 2011-20 Karel Pičman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
module RedmineDmsf
module Patches
module QueriesControllerPatch
##################################################################################################################
# New methods
private
def redirect_to_dmsf_query(options)
redirect_to dmsf_folder_path(@project, options)
end
end
end
end
RedmineExtensions::PatchManager.register_controller_patch 'QueriesController',
'RedmineDmsf::Patches::QueriesControllerPatch', prepend: true