From 75412d956b49ab702e48b86684c79e8737f3ea57 Mon Sep 17 00:00:00 2001 From: João M. M. da Silva Date: Thu, 24 May 2012 18:43:54 -0300 Subject: [PATCH] [Mezuro] almost fixed exibition of periodicity in edit project --- plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb b/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb index 961dcc2..ec5381f 100644 --- a/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb +++ b/plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb @@ -34,6 +34,6 @@ <%= required labelled_form_field _('Configuration'), f.select(:configuration_name, @configuration_names.sort, {:selected => @selected}) %>
-<% @periodicity = (@project.nil? ? 0 : @kalibro_client.process_period(@project.name)) %> +<% @selected = (@project.nil? ? 0 : @kalibro_client.process_period(@article.title)) %> <%= required labelled_form_field _('Periodic Avaliation'), - f.select(:periodicity_in_days, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ,{:selected => @periodicity}) %>
+ f.select(:periodicity_in_days, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ,{:selected => @selected}) %>
-- libgit2 0.21.2