From 983bacca48840d6265ed2a5240933d9acfcde317 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 15 Nov 2024 09:25:11 +0100 Subject: [PATCH] Deleting language items after deleting a captcha question --- .../captcha/question/CaptchaQuestionAction.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 @@ public function create() return $captchaQuestion; } + + #[\Override] + public function delete() + { + $returnValue = parent::delete(); + + $this->deleteI18nValues(); + + return $returnValue; + } }