mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:批量删除数组为空时返回正常
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user