fix frontend fingerprint gui

This commit is contained in:
Roland Schneider 2020-01-07 20:55:39 +01:00
parent 42bacacd62
commit be88169d2d

View File

@ -73,7 +73,7 @@ class FingerprintController extends Controller
throw new NotFoundHttpException('Card not found:' . $id_card); throw new NotFoundHttpException('Card not found:' . $id_card);
} }
$customer = Customer::findOne($card->customer); $customer = Customer::findOne($card->customer->id_customer);
if (!isset($customer)) { if (!isset($customer)) {
throw new NotFoundHttpException('Customer not found'); throw new NotFoundHttpException('Customer not found');