Domyślne ustawienia były niepoprawne.
authorLukasz Rekucki <lreqc@localhost.(none)>
Fri, 21 Aug 2009 07:38:33 +0000 (09:38 +0200)
committerLukasz Rekucki <lreqc@localhost.(none)>
Fri, 21 Aug 2009 07:38:33 +0000 (09:38 +0200)
app/controllers/publications_controller.rb
app/views/settings/_publications_settings.html.erb

index 1220bea..bb74d03 100644 (file)
@@ -13,7 +13,7 @@ class PublicationsController < ApplicationController
   end
 
   def refresh
   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)
        Repository.all.each do |repo|
          repo.entries.each do |entry|
            match = entry.path.match(regexp)
index 65e436e..626e5c6 100644 (file)
@@ -1,4 +1,4 @@
-<% @tracker = Tracker.find(settings['tracker']) %>
+<% @tracker = Tracker.find(@settings['tracker']) %>
 
 <fieldset>
 <p>
 
 <fieldset>
 <p>