Merge pull request '调整 index_to_name response' (#53) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
commit
f44b503eec
|
@ -50,7 +50,7 @@ class IssuesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def index_to_name
|
def index_to_name
|
||||||
issues_result = @project.issues.where(project_issues_index:params[:index]).map{|e|{project_issues_index:e.project_issues_index,subject:e.subject}}
|
issues_result = @project.issues.where(project_issues_index:params[:index]).map{|e|{id:e.id,project_issues_index:e.project_issues_index,subject:e.subject}}
|
||||||
render json: issues_result
|
render json: issues_result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue