Problem/Motivation

if for any reason the related flag is not existing, flaggingcollection::delete and pre-delete are raising fatal errors

Steps to reproduce

create a flagging collection, then delete the related flag, then try to delete the flagging collection

Proposed resolution

check $flag before using it
here is a patch
[edit] sorry wrong patch
[edit] here is the right patch

Comments

bachbach created an issue. See original summary.

bachbach’s picture

Issue summary: View changes
bachbach’s picture

Issue summary: View changes
StatusFileSize
new1.7 KB

  • sl27257 committed 74ea121 on 4.0.x
    Issue #3200997 by bachbach: check for flag before delete
    
sl27257’s picture

Status: Active » Reviewed & tested by the community
sl27257’s picture

Status: Reviewed & tested by the community » Fixed
sl27257’s picture

Status: Fixed » Closed (fixed)