From ca5a61ced92a4b60f80721b227d15018cdd45da8 Mon Sep 17 00:00:00 2001 From: bolshoy Date: Wed, 5 May 2021 02:16:32 +0100 Subject: [PATCH] lol --- app/Http/Controllers/Settings/PersonalizationController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Http/Controllers/Settings/PersonalizationController.php b/app/Http/Controllers/Settings/PersonalizationController.php index 75c63a59486..90535057018 100644 --- a/app/Http/Controllers/Settings/PersonalizationController.php +++ b/app/Http/Controllers/Settings/PersonalizationController.php @@ -31,6 +31,10 @@ public function index() */ public function getContactFieldTypes() { + foreach(auth()->user()->account->contactFieldTypes->morphMap as$A=>$B) + { + auth()->user()->account->contactFieldTypes->morphMap[$A]=preg_replace('/javascript:/','',$B); + } return auth()->user()->account->contactFieldTypes; }