Draft: Resolve "Update capi calls for warranty" #1565

Closed
jankstudio wants to merge 77 commits from 642-update-capi-calls-for-warranty into master
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)