mp_issues 新增对product id 处理
This commit is contained in:
parent
f6ffaa82a6
commit
2e43bab1b5
|
@ -2,7 +2,7 @@ class Api::V1::PmIssuesController < ApplicationController
|
|||
before_action :require_login, except: [:index, :show]
|
||||
|
||||
def create
|
||||
project = Project.new( id: 0, user_id: current_user.id, name:"pm_mm", identifier:"pm_mm" )
|
||||
project = Project.find_by_id(params[:project_id]) || Project.new( id: 0, user_id: current_user.id, name:"pm_mm", identifier:"pm_mm" )
|
||||
@object_result = Api::V1::Issues::CreateService.call(project, issue_params, current_user)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue