redmine_track_control
redmine_track_control copied to clipboard
Problem API create Issue
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:in
get_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