From: Lukasz Rekucki Date: Fri, 21 Aug 2009 07:38:33 +0000 (+0200) Subject: Domyślne ustawienia były niepoprawne. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/0e81def27bfaa36288143d1ff4c325164d4d2f10?ds=sidebyside;hp=--cc Domyślne ustawienia były niepoprawne. --- 0e81def27bfaa36288143d1ff4c325164d4d2f10 diff --git a/redmine/redmine_publications/app/controllers/publications_controller.rb b/redmine/redmine_publications/app/controllers/publications_controller.rb index 1220bea1..bb74d03f 100644 --- a/redmine/redmine_publications/app/controllers/publications_controller.rb +++ b/redmine/redmine_publications/app/controllers/publications_controller.rb @@ -13,7 +13,7 @@ class PublicationsController < ApplicationController end def refresh - regexp = Regexp.new(Setting.plugin_redmine_publications['pattern']) + regexp = Regexp.new(Setting.plugin_redmine_publications[:pattern]) Repository.all.each do |repo| repo.entries.each do |entry| match = entry.path.match(regexp) diff --git a/redmine/redmine_publications/app/views/settings/_publications_settings.html.erb b/redmine/redmine_publications/app/views/settings/_publications_settings.html.erb index 65e436eb..626e5c62 100644 --- a/redmine/redmine_publications/app/views/settings/_publications_settings.html.erb +++ b/redmine/redmine_publications/app/views/settings/_publications_settings.html.erb @@ -1,4 +1,4 @@ -<% @tracker = Tracker.find(settings['tracker']) %> +<% @tracker = Tracker.find(@settings['tracker']) %>