活動を一覧画面からまとめて削除しようとするとundefinedエラーが生じる不具合の修正 #1077
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
関連Issue / Related Issue
不具合の内容 / Bug
活動を一覧画面からまとめて削除しようとするとundefinedエラーが生じる.
原因 / Cause
参加者を含むレコードは親レコードが削除されると子レコードも削除される.
そのため, すでに削除済みの子レコードに対して再度deleteを実行しようとしていた.
変更内容 / Details of Change
delete前にisRecordExists($recordId)を用いてレコードの存在判定を行う.
なお, 参加者を含む活動作成時にFatalErrorが発生する場合には #1069 を適用してください.
影響範囲 / Affected Area
活動のまとめて削除機能関連(MassDelete)
チェックリスト / Check List
備考 / Remarks