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; }