From 4965d8a2a060aa445f19322d6fef4486d15d9b9a Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 17 Jun 2021 17:42:51 +0200 Subject: [PATCH] - Fix hashcode update --- app/Http/Controllers/ContactController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index c26f254..c004828 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -240,6 +240,9 @@ class ContactController extends Controller $contact->contact_ville = $commune; $contact->contact_country = $pays; $contact->contact_updatedate = date('Y-m-d H:i:s'); + if (isset($request->hashcode) && $request->hashcode != "") { + $contact->contact_hash = $request->hashcode; + } } else { $site = Site::where('site_id', $refsite)->first();