diff --git a/lib/patches/redmine_group_incognito_patch.rb b/lib/patches/redmine_group_incognito_patch.rb deleted file mode 100644 index 2cb1b5b..0000000 --- a/lib/patches/redmine_group_incognito_patch.rb +++ /dev/null @@ -1,7 +0,0 @@ -module RedmineGroupIncognitoPatch - def self.included(base) - base.class_eval do - - end - end -end diff --git a/lib/patches/redmine_helper_patch.rb b/lib/patches/redmine_helper_patch.rb index 103202b..2434f48 100644 --- a/lib/patches/redmine_helper_patch.rb +++ b/lib/patches/redmine_helper_patch.rb @@ -10,7 +10,7 @@ def define_project if params[:controller] == 'issues' params[:project_id] ? Project.find(params[:project_id]) : Issue.find(params[:id]).project elsif params[:controller] == 'projects'|| params[:controller] == 'activities' || params[:controller] == 'reports' - Project.find(params[:id]) if params[:id] + Project.find(params[:id])||@project elsif params[:controller] == 'journals' Journal.find(params[:id]).issue.project end diff --git a/lib/patches/redmine_user_incognito_patch.rb b/lib/patches/redmine_user_incognito_patch.rb deleted file mode 100644 index 1fff5c5..0000000 --- a/lib/patches/redmine_user_incognito_patch.rb +++ /dev/null @@ -1,11 +0,0 @@ -module RedmineUserIncognitoPatch - def self.included(base) - base.class_eval do - - def name=(value) - @name = value - end - - end - end -end diff --git a/lib/redmine_user_incognito.rb b/lib/redmine_user_incognito.rb index 6d03977..4dd6188 100644 --- a/lib/redmine_user_incognito.rb +++ b/lib/redmine_user_incognito.rb @@ -2,7 +2,6 @@ require 'patches/redmine_query_incognito_patch' require 'patches/redmine_queries_helper_incognito_patch' require 'patches/redmine_attachments_helper_incognito_patch' -require 'patches/redmine_user_incognito_patch' require 'patches/redmine_reports_controller_incognito_patch' require 'patches/redmine_versions_helper_incognito_patch' require 'patches/redmine_helper_patch' @@ -13,7 +12,6 @@ Query.send(:include, RedmineQueryIncognitoPatch) QueriesHelper.send(:include, RedmineQueriesHelperIncognitoPatch) AttachmentsHelper.send(:include, RedmineAttachmentsHelperIncognitoPatch) - User.send(:include, RedmineUserIncognitoPatch) ReportsController.send(:include, RedmineReportsControllerIncognitoPatch) VersionsHelper.send(:include, RedmineVersionsHelperIncognitoPatch) end