From be88169d2ddad0dd23127ce81acfa390f56b1516 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Tue, 7 Jan 2020 20:55:39 +0100 Subject: [PATCH] fix frontend fingerprint gui --- frontend/controllers/FingerprintController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/controllers/FingerprintController.php b/frontend/controllers/FingerprintController.php index c43b18e..adbca3c 100644 --- a/frontend/controllers/FingerprintController.php +++ b/frontend/controllers/FingerprintController.php @@ -73,7 +73,7 @@ class FingerprintController extends Controller throw new NotFoundHttpException('Card not found:' . $id_card); } - $customer = Customer::findOne($card->customer); + $customer = Customer::findOne($card->customer->id_customer); if (!isset($customer)) { throw new NotFoundHttpException('Customer not found');