]> git.agnieray.net Git - galette.git/commitdiff
Fix wrong message type; refs #1729
authorJohan Cwiklinski <johan@x-tnd.be>
Sat, 21 Oct 2023 08:48:25 +0000 (10:48 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sat, 21 Oct 2023 08:55:22 +0000 (10:55 +0200)
galette/lib/Galette/Controllers/Crud/PaymentTypeController.php

index 73b5f5831f02f444d240a428291460b818b8da94..d8f7dc674c361143b3866700ca4f92326fdd9b3e 100644 (file)
@@ -230,7 +230,7 @@ class PaymentTypeController extends CrudController
             }
         } else {
             if ($id === null) {
-                $error_detected[] = preg_replace(
+                $msg = preg_replace(
                     '(%s)',
                     $ptype->getName(),
                     _T("Payment type '%s' has been successfully added.")