Deleting language items after deleting a captcha question 6.2-captcha
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 15 Nov 2024 08:25:11 +0000 (09:25 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 15 Nov 2024 08:25:11 +0000 (09:25 +0100)
wcfsetup/install/files/lib/data/captcha/question/CaptchaQuestionAction.class.php

index 669abae287685fc151a2d95f919d1a65516fde70..abb4fcd1c40cb3007462d8d0861ce24b8c985598 100644 (file)
@@ -76,4 +76,14 @@ class CaptchaQuestionAction extends AbstractDatabaseObjectAction implements ITog
 
         return $captchaQuestion;
     }
+
+    #[\Override]
+    public function delete()
+    {
+        $returnValue = parent::delete();
+
+        $this->deleteI18nValues();
+
+        return $returnValue;
+    }
 }