]> git.agnieray.net Git - galette.git/commitdiff
Use requested contribution type; closes #1738
authorJohan Cwiklinski <johan@x-tnd.be>
Fri, 27 Oct 2023 12:49:51 +0000 (14:49 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 27 Oct 2023 12:49:51 +0000 (14:49 +0200)
galette/lib/Galette/Controllers/Crud/ContributionsController.php

index 23b1cefcfd0b440aaa24a10bff4d943c3bb3a0b6..0c9c9cce697b5e47a74ec787e43cfde76ae0d1b1 100644 (file)
@@ -865,7 +865,7 @@ class ContributionsController extends CrudController
                 $redirect_url = $this->routeparser->urlFor(
                     'addContribution',
                     [
-                        'type'      => $type
+                        'type'      => $post['contrib_type'] ?? $type
                     ]
                 ) . '?' . Transaction::PK . '=' . $contrib->transaction->id .
                 '&' . Adherent::PK . '=' . $contrib->member;