Resolve "Warranty MR" #1478

Open
korina.cordero wants to merge 77 commits from 563-warranty-mr into master-fix
Showing only changes of commit 2f918c49cc - Show all commits

View file

@ -3045,7 +3045,10 @@ class APIController extends Controller implements LoggedController
}
$sku = $warr_serial->getSKU();
$batt = $em->getRepository(SAPBattery::class)->find($sku);
$batt = null;
if ($sku != null)
$batt = $em->getRepository(SAPBattery::class)->find($sku);
// TODO: put this in a config file
$image_url = $req->getSchemeAndHttpHost() . '/battery/generic.png';
if ($batt != null)