]> git.agnieray.net Git - galette.git/commitdiff
Missing uses and wront route name
authorJohan Cwiklinski <johan@x-tnd.be>
Sun, 24 May 2020 16:17:34 +0000 (18:17 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Sun, 24 May 2020 16:17:34 +0000 (18:17 +0200)
galette/lib/Galette/Controllers/Crud/TransactionsController.php
galette/templates/default/ajouter_transaction.tpl

index 2c3f5f7bd518b409310c35d7265acb6437a91069..a14adff8e59bde93bfa93fffdf0b34a4177583ca 100644 (file)
@@ -41,6 +41,8 @@ use Galette\Controllers\CrudController;
 
 use Slim\Http\Request;
 use Slim\Http\Response;
+use Galette\Entity\Adherent;
+use Galette\Entity\Contribution;
 use Galette\Entity\Transaction;
 use Galette\Repository\Contributions;
 use Galette\Repository\Members;
index 99b8b6d1dd64a4334f548175fa47caa8f7380fc4..60f2011c11e9b9e3233391fddb372e04eb223e63 100644 (file)
                 {_T string="Attached contributions"}
                 {if $transaction->getMissingAmount() > 0}
                     <a
-                        href="{path_for name="contribution" data=["type" => "fee", "action" => "add"]}?trans_id={$transaction->id}"
+                        href="{path_for name="addContribution" data=["type" => "fee"]}?trans_id={$transaction->id}"
                         class="button fright tooltip"
                     >
                         <i class="fas fa-user-check"></i>
                         <span class="sr-only">{_T string="Create a new fee that will be attached to the current transaction"}</span>
                     </a>
                     <a
-                        href="{path_for name="contribution" data=["type" => "donation", "action" => "add"]}?trans_id={$transaction->id}"
+                        href="{path_for name="addContribution" data=["type" => "donation"]}?trans_id={$transaction->id}"
                         class="button fright tooltip"
                     >
                         <i class="fas fa-gift"></i>