"Add capability to deactivate a battery" #1658

Merged
korina.cordero merged 6 commits from 733-add-capability-to-deactivate-a-battery into staging 2023-02-08 03:31:14 +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');