Project

General

Profile

Actions

Defect #15015

closed

Multiple categories for issue creation

Added by poornima dhanasekaran about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,

I've changed the select option as multiple select for accepting multiple categories for creating as single issue. Changed the category_id as string from int and modified the code as <%= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), {:include_blank => true}, {:multiple => true, :style => "width:350px;",:size => 4 }%>.

In issues_controller,

category_ids = []  
if params[:issue][:category_id].length > 1
params[:issue][:category_id].each do|category|
category_ids << category
end
else
category_ids = params[:issue][:category_id]
end
The values stored in db as,
category_id
-------------------
---
- "69"
- "72"
select category_id from issues where id= 18824;
-------------------

I don't know why it stored like this. Can anyone help me out?.

Actions #1

Updated by Toshi MARUYAMA about 12 years ago

  • Description updated (diff)
Actions #2

Updated by Toshi MARUYAMA about 12 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

You have posted same message.
http://www.redmine.org/boards/4/topics/39734

It is not Redmine defect.

Actions

Also available in: Atom PDF