Commit 55817d71f859c638eb569ba45cd20db232b816e4

Authored by João M. M. da Silva
1 parent 6f099471

[Mezuro] almost fixed exibition of periodicity in edit project

plugins/mezuro/views/cms/mezuro_plugin/_project_content.html.erb
... ... @@ -34,6 +34,6 @@
34 34 <%= required labelled_form_field _('Configuration'),
35 35 f.select(:configuration_name, @configuration_names.sort, {:selected => @selected}) %><br/>
36 36  
37   -<% @periodicity = (@project.nil? ? 0 : @kalibro_client.process_period(@project.name)) %>
  37 +<% @selected = (@project.nil? ? 0 : @kalibro_client.process_period(@article.title)) %>
38 38 <%= required labelled_form_field _('Periodic Avaliation'),
39   - f.select(:periodicity_in_days, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ,{:selected => @periodicity}) %><br/>
  39 + f.select(:periodicity_in_days, MezuroPlugin::Helpers::ContentViewerHelper.create_periodicity_options ,{:selected => @selected}) %><br/>
... ...