]> git.agnieray.net Git - galette.git/commitdiff
Fix IDs checks
authorJohan Cwiklinski <johan@x-tnd.be>
Fri, 14 May 2021 18:17:10 +0000 (20:17 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 14 May 2021 18:17:10 +0000 (20:17 +0200)
galette/lib/Galette/Controllers/CrudController.php

index 087854737feddb7431ae41e89f835f22edf8ee51..851ee02a09880fed0b44b2b96a0355f04802b7dc 100644 (file)
@@ -220,7 +220,7 @@ abstract class CrudController extends AbstractController
         //add to $args if needed
         if (is_array($ids)) {
             $args['ids'] = $ids;
-        } elseif (!isset($args['id'])) {
+        } elseif (!isset($args['id']) && $ids) {
             $args['id'] = $ids;
         }