Anomalie #1694
ferméMass add contribution fail if data is missing
100%
Description
On 0.9.x and 1.x, if date or extension is missing, mass adding a contribution will fail.
On 1.x, even when some errors are declared, form is sent but messages only appears in logs
127.0.0.1 - 2023-09-19 17:59:15 - ERROR - Some errors has been threw attempting to edit/store a contributionArray ( [0] => - Champ obligatoire <a href="#date_enreg">Date</a> vide. [1] => - Champ obligatoire <a href="#date_debut_cotis">Date de début d’adhésion</a> vide. )
Mis à jour par Johan Cwiklinski il y a plus d'un an
- Statut changé de Nouveau à In Progress
- Assigné à mis à Johan Cwiklinski
With no error, I confirm contribution extension is created on all selected users.
I'll have to investigate to see if that's OK when there is an error on one of the selected members because of fee overlapping for example; this will be handled in a different ticket.
Mis à jour par Guillaume AGNIERAY il y a plus d'un an
Johan Cwiklinski a écrit (#note-2):
With no error, I confirm contribution extension is created on all selected users.
I can confirm this too.
I'll have to investigate to see if that's OK when there is an error on one of the selected members because of fee overlapping for example; this will be handled in a different ticket.
I can already confirm there is indeed at least an error because of fee overlapping (on 0.9.x and 1.x).
- With 1.x in logs :
127.0.0.1 - 2023-09-22 10:06:03 - ERROR - Some errors has been threw attempting to edit/store a contributionArray ( [0] => - La période d’adhésion chevauche la période commençant le 22/09/2023 )
- Slim error displayed on screen on 0.9.x, and recoverable in jqXHR object on 1.x :
405 Method Not Allowed The application could not run because of the following error: Details Type: Slim\Exception\HttpMethodNotAllowedException Code: 405 Message: Method not allowed. Must be one of: POST File: /var/html/galette/galette/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php Line: 79 Trace #0 /var/html/galette/galette/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(44): Slim\Middleware\RoutingMiddleware->performRouting() #1 /var/html/galette/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process() #2 /var/html/galette/galette/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #3 /var/html/galette/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process() #4 /var/html/galette/galette/vendor/slim/twig-view/src/TwigMiddleware.php(115): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #5 /var/html/galette/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Views\TwigMiddleware->process() #6 /var/html/galette/galette/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #7 /var/html/galette/galette/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle() #8 /var/html/galette/galette/vendor/slim/slim/Slim/App.php(183): Slim\App->handle() #9 /var/html/galette/galette/includes/main.inc.php(244): Slim\App->run() #10 /var/html/galette/galette/webroot/index.php(57): require_once('...') #11 {main}
Mis à jour par Johan Cwiklinski il y a environ un an
- Statut changé de In Progress à Résolu
- % réalisé changé de 0 à 100
Appliqué par commit 5938775e59881dafbba23d6f184cfb1d695c3bc0.