lamps / redmine_group_assignee

screenshot link http://www.redmine.org/plugins/groupsassignee
4 stars 4 forks source link

Error with group names contains '-' character #3

Closed ghost closed 12 years ago

ghost commented 12 years ago

Dear,

I found that your plugin is very useful, it helps to reduce load for admin to manage groups. However, I got the following error with group names contains '-' character:

ActionView::TemplateError (`@test-01' is not allowed as an instance variable name) on line #1 of vendor/plugins/redmine_group_assignee/app/views/groupext/_form.html.erb: <%= error_messages_for @group %>

<%= f.text_field :lastname, :label => :field_name %>

vendor/plugins/redmine_group_assignee/app/views/groupext/_form.html.erb:1 vendor/plugins/redmine_group_assignee/app/views/groupext/_general.html.erb:2 ###### Regards,
lamps commented 12 years ago

hi You which version to use? if have 1.3.x,

  1. redmine_group_assignee / app / views / groupext / _form.html.erb file (This file must be modified)
    • 1 line is delete or replace <%= f.error_messages %>
  2. rake db:migrate_plugins RAILS_ENV=production
  3. service restart..

_form.html.erb <%= f.error_messages %>

<%= f.text_field :lastname, :label => :field_name %>

<% @group.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :group, value %>

<% end %>

Sorry, but I should not have file attachments have a good time ^^

lamps commented 12 years ago
ghost commented 12 years ago

Hi,

I got it works like a charm. Thank you so much :)

Best regards,