Commit d635a42c authored by root's avatar root
Browse files

[fix](Oscar/Controller/ProjectGrantController.php): Fix empty value in...

[fix](Oscar/Controller/ProjectGrantController.php): Fix empty value in paramIDS var with array_filter function
parent 2ea80c5e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1036,7 +1036,7 @@ class ProjectGrantController extends AbstractOscarController implements UseNotif
        }

        if ($ids) {
            $ids = explode(',', $ids);
            $ids = array_filter( explode(',', $ids) );
            $result = $this->getEntityManager()->createQueryBuilder()->select('a')
                ->from(Activity::class, 'a')
                ->where('a.id IN(:ids)')
@@ -1180,7 +1180,7 @@ class ProjectGrantController extends AbstractOscarController implements UseNotif
            }
        }

        $ids = explode(',', $paramID);
        $ids = array_filter( explode(',', $paramID) );

        $payments = $this->getProjectGrantService()->getPaymentsByActivityId(
            $ids,