Browse Source

更改:批量删除数组为空时返回正常

pull/347/head
yystopf 2 years ago
parent
commit
cbbd62121c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/api/pm/issues_controller.rb

+ 1
- 0
app/controllers/api/pm/issues_controller.rb View File

@@ -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…
Cancel
Save