From: Cyperghost Date: Fri, 15 Nov 2024 08:25:11 +0000 (+0100) Subject: Deleting language items after deleting a captcha question X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=983bacca48840d6265ed2a5240933d9acfcde317;p=GitHub%2FWoltLab%2FWCF.git Deleting language items after deleting a captcha question --- diff --git a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php index 669abae287..abb4fcd1c4 100644 --- a/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php +++ b/wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php @@ -76,4 +76,14 @@ class CaptchaQuestionAction extends AbstractDatabaseObjectAction implements ITog return $captchaQuestion; } + + #[\Override] + public function delete() + { + $returnValue = parent::delete(); + + $this->deleteI18nValues(); + + return $returnValue; + } }