keeps / redmine_email_notification_content_filter

Redmine Email Notification Content Filter Plugin
http://www.redmine.org/plugins/redmine_email_notification_content_filter
7 stars 8 forks source link

redmine 2.2 compatibility #1

Closed cforce closed 11 years ago

cforce commented 11 years ago

Is it compatible?

sleroux-keep commented 11 years ago

We haven't tryed it yet, but if you do please give us feedback! This plugin was made for our internal use and was only tested in Redmine 1.4.x.

vvanderm commented 11 years ago

I've played with it for a bit and gotten it to run in 2.2. Only issue seems to be on email edit - throws a few exceptions.

Modifications required on init.rb and the settings partial.

cforce commented 11 years ago

It can't work! no such file to load -- dispatcher

vvanderm commented 11 years ago

Its working for me. Use this as your init.rb

require 'redmine'

require 'dispatcher'

require 'mailer_patch' require 'projects_controller_patch'

Redmine::Plugin.register :redmine_email_notification_content_filter do name 'Redmine Email Notification Content Filter plugin' author 'Sbastien Leroux' description 'This is a plugin for Redmine that allows to remove the description in the notification emails' version '0.0.1' author_url 'mailto:sleroux@keep.pt' url 'https://github.com/keeps/redmine_email_notification_content_filter' settings :default => { 'removeDescriptionFromDocument' => 'false', 'removeDescriptionFromNews' => 'false', 'removeDescriptionFromIssue' => 'false' }, :partial => 'settings/email_notification_content_filter' project_module :email_notification_content_filter do permission :block_email, {:email_notification_content_filter => :show} end end

ActionDispatch::Callbacks.to_prepare do require_dependency 'mailer' require_dependency 'projects_controller' ProjectsController.send(:include, ProjectsControllerPatch) Mailer.send(:include, MailerPatch)

end

cforce commented 11 years ago

Pleass provide a pull request frp ur fork.

sleroux-keep commented 11 years ago

I've updated the project to work with redmine 1.4 and redmine 2.2. I also add the Italian translation, provided by @barda