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_redmine.git/commitdiff_plain/85c32a1dec9ecfaea40e0b85df14932c5e6060a7?hp=b88797757140c93fac785865fab6d89578be1f6b Powinno działać nawet przy braku ustawień. --- diff --git a/app/views/settings/_publications_settings.html.erb b/app/views/settings/_publications_settings.html.erb index 626e5c6..0465535 100644 --- a/app/views/settings/_publications_settings.html.erb +++ b/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] || '' %>