jijeshmohan / redmine_track_control

Redmine Plugin to control issue creation with specific tracker
http://jijeshmohan.wordpress.com/2011/12/24/redmine-tracker-control-plugin-released
Other
18 stars 17 forks source link

Problem API create Issue #42

Open mjmoralesg opened 7 years ago

mjmoralesg commented 7 years ago

When I create an issue through the REDMINE API, it gives me the following error Processing by IssuesController#create as JSON Parameters: {"key"=>"a70a7b30d1155d4e536c128e0723dd764a319a81", "issue"=>{"project_id"=>"65", "tracker_id"=>"2", "status_id"=>"1", "priority_id"=>"2", "custom_field_values"=>[{"id"=>"2", "value"=>"Todas"}, {"id"=>"5", "value"=>"2017031096000014"}, {"id"=>"6", "value"=>"http://sgsdesarrollo.epa.com/otrs/index.pl?Action=AgentTicketZoom;TicketID=90876"}], "subject"=>"[Ticket#2017031096000014] test", "category_id"=>"52", "parent_issue_id"=>"6", "estimated_hours"=>"1"}} Current user: otrs (id=143) Completed 500 in 3495ms (ActiveRecord: 37.0ms)

NoMethodError (undefined method flatten' for nil:NilClass): plugins/redmine_track_control/lib/redmine_track_control/issues_controller_patch.rb:57:inget_tracker_ids' plugins/redmine_track_control/lib/redmine_track_control/issues_controller_patch.rb:43:in `build_new_issue_from_params_with_trackcontrol'

. When removing the plugins works perfectly, what could it be?

I have redmine 3.2.2