更改:批量删除数组为空时返回正常
This commit is contained in:
parent
d84b32f4f6
commit
cbbd62121c
|
@ -64,6 +64,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
|||
end
|
||||
|
||||
def batch_destroy
|
||||
return render_ok if params[:ids].is_a?(Array) && params[:ids].blank?
|
||||
@object_result = Api::V1::Issues::BatchDeleteService.call(@project, @issues, current_user)
|
||||
if @object_result
|
||||
render_ok
|
||||
|
|
Loading…
Reference in New Issue