Project

General

Profile

Support plugin

Added by Roman aka iTUX about 14 years ago

Hello!

Very useful plugin for me - but there is one problem. I can not to add additional fields.

I need to add two fields - DueDate and Priority. I was able to add only one field - DueDate.

I copy string

<p><%= f.text_field :due_date, :size => 10, :required => true, :disabled => ? ><= calendar_for('issue_due_date') if @issue.leaf? %></p>

from /redmine/app/views/issues/_attributes.rhtml and inserted it to /redmine/vendor/plugins/redmine_support/app/views/support/new.html.erb and it works. But if I insert string

<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => ? %></p>

from /redmine/app/views/issues/_attributes.rhtml and inserted it to /redmine/vendor/plugins/redmine_support/app/views/support/new.html.erb

I get 500 Internal Server Error - ActionView::TemplateError (undefined method `collect' for nil:NilClass)

How can I fix it?

Best regards.