X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7a3192417060241aa0956762a5e101b5b893d22b..8ad03264f1a47afe5108b1252ec3ec139dc16d9a:/redmine/redmine_publications/init.rb?ds=inline diff --git a/redmine/redmine_publications/init.rb b/redmine/redmine_publications/init.rb index b1739c33..4298f606 100644 --- a/redmine/redmine_publications/init.rb +++ b/redmine/redmine_publications/init.rb @@ -11,6 +11,10 @@ Dispatcher.to_prepare :redmine_publications do unless Issue.included_modules.include? RedminePublications::IssuePatch Issue.send(:include, RedminePublications::IssuePatch) end + + unless Change.included_modules.include? RedminePublications::ChangePatch + Change.send(:include, RedminePublications::ChangePatch) + end end require_dependency 'issue_publication_hook' @@ -24,7 +28,7 @@ Redmine::Plugin.register :redmine_publications do # permission :view_issues_for_publication, :publications => :issues settings :partial => 'settings/publications_settings', - :default => { :tracker => '1', :pattern => '.*/[a-z_].xml'} + :default => { :tracker => '1', :pattern => '.*/[a-z_].xml', :editorurl => 'http://localhost/:pubid'} menu :application_menu, :publications, { :controller => 'publications', :action => 'index' }, :caption => 'Publikacje'