]> git.agnieray.net Git - galette.git/commitdiff
Ensure dynamics fields are loaded for new contribs/transactions
authorJohan Cwiklinski <jcwiklinski@teclib.com>
Tue, 30 Jan 2018 08:33:24 +0000 (09:33 +0100)
committerJohan Cwiklinski <jcwiklinski@teclib.com>
Tue, 30 Jan 2018 08:33:24 +0000 (09:33 +0100)
galette/includes/routes/contributions.routes.php
galette/lib/Galette/Entity/Contribution.php
galette/lib/Galette/Entity/Transaction.php

index 3412739032b2f4bd10bd32ed2bed092d0b20915f..220acee3b211fb4f513e6b2b66460e00fab93f9d 100644 (file)
@@ -432,7 +432,6 @@ $app->get(
         }
         $params['pref_membership_ext'] = $ext_membership;
 
-
         // display page
         $this->view->render(
             $response,
index 6ba416e427ad0a27ab9fc867c5eab47f7fe4988a..9f32b27b803792e9f78fd6223d51a634d77a17d6 100644 (file)
@@ -204,9 +204,7 @@ class Contribution
             $this->loadFromRS($args);
         }
 
-        if ($this->id !== null) {
-            $this->loadDynamicFields();
-        }
+        $this->loadDynamicFields();
     }
 
     /**
index c9d49436c0980ee9cc4d6d5bb9c9c9004f74044d..8432fdf7c333a056f69350706e66199f7b8dc95f 100644 (file)
@@ -133,9 +133,7 @@ class Transaction
             $this->loadFromRS($args);
         }
 
-        if ($this->id !== null) {
-            $this->loadDynamicFields();
-        }
+        $this->loadDynamicFields();
     }
 
     /**