From: Lukasz Rekucki Date: Fri, 21 Aug 2009 07:55:10 +0000 (+0200) Subject: Powinno działać nawet przy braku ustawień. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/2d40a900768a7c962dc67a8b8bdc332f65fa110b?ds=inline;hp=--cc Powinno działać nawet przy braku ustawień. --- 2d40a900768a7c962dc67a8b8bdc332f65fa110b 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 626e5c62..0465535a 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] || 1) %>

@@ -8,6 +8,6 @@

- <%= text_field_tag 'settings[pattern]', @settings['pattern'] %> + <%= text_field_tag 'settings[pattern]', @settings[:pattern] || '' %>