From ecf14ad2c86be0e7304bfb4fa82f61a94a2a947c Mon Sep 17 00:00:00 2001 From: Arek Solek Date: Fri, 8 Sep 2023 11:09:10 +0200 Subject: [PATCH] Added improvement --- modules/Vtiger/uitypes/Email.php | 3 +-- modules/Vtiger/uitypes/Phone.php | 3 +-- .../basic/modules/Vtiger/resources/Detail.js | 3 ++- .../layouts/basic/modules/Vtiger/resources/List.js | 1 + public_html/layouts/basic/styles/_Style.scss | 14 ++++++++++++-- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/modules/Vtiger/uitypes/Email.php b/modules/Vtiger/uitypes/Email.php index 0f0c59805352..4bd21794c688 100644 --- a/modules/Vtiger/uitypes/Email.php +++ b/modules/Vtiger/uitypes/Email.php @@ -47,8 +47,7 @@ public function getDisplayValue($value, $record = false, $recordModel = false, $ if ('Base' !== \App\Mail::getMailComposer()) { $icon = ' '; $moduleName = $recordModel->getModuleName(); - $url = "index.php?module={$moduleName}&action=Fields&mode=getCopyValue&fieldName={$this->getFieldModel()->getName()}&record={$recordModel->getId()}"; - $button = "'; + $button = "'; } return "{$icon}{$value}$button"; } diff --git a/modules/Vtiger/uitypes/Phone.php b/modules/Vtiger/uitypes/Phone.php index 9732cffc248f..a1031383ffcc 100644 --- a/modules/Vtiger/uitypes/Phone.php +++ b/modules/Vtiger/uitypes/Phone.php @@ -88,8 +88,7 @@ public function getDisplayValue($value, $record = false, $recordModel = false, $ return '' . $international . '' . $extra; } $moduleName = $recordModel->getModuleName(); - $url = "index.php?module={$moduleName}&action=Fields&mode=getCopyValue&fieldName={$fieldName}&record={$recordModel->getId()}"; - $button = "'; + $button = "'; $data = 'data-phone="' . preg_replace('/(?