Staging #1663

Merged
korina.cordero merged 16 commits from staging into master 2023-02-09 10:19:34 +00:00
Showing only changes of commit 72fc6ee9b0 - Show all commits

View file

@ -485,7 +485,7 @@ class VehicleController extends Controller
// get row data
$em = $this->getDoctrine()->getManager();
$vobj = $em->getRepository(Vehicle::class)->find($req->request->get('vehicle_id'));
$all_batts = $em->getRepository(Battery::class)->findBy('flag_active' => true);
$all_batts = $em->getRepository(Battery::class)->findBy(['flag_active' => true]);
if (empty($vobj))
throw $this->createNotFoundException('The item does not exist');