diff --git a/src/Forms/LinkItemField.php b/src/Forms/LinkItemField.php index 6ba209f..bba189f 100644 --- a/src/Forms/LinkItemField.php +++ b/src/Forms/LinkItemField.php @@ -160,7 +160,7 @@ public function LinkItemForm() ->addExtraClass('link-hidden link-external'), EmailField::create('Email', 'Email (without mailto:)') ->addExtraClass('link-hidden link-email'), - TextField::create('Telephone', 'Telephone (without +)') + TextField::create('Telephone', 'Telephone') ->addExtraClass('link-hidden link-telephone'), UploadField::create('File', 'File') ->addExtraClass('link-hidden link-file') diff --git a/src/Model/LinkItem.php b/src/Model/LinkItem.php index 8459721..ef311b9 100644 --- a/src/Model/LinkItem.php +++ b/src/Model/LinkItem.php @@ -134,7 +134,7 @@ public function getCMSFields() ->hideUnless('LinkType')->isEqualTo('external')->end(), EmailField::create('Email', 'Email (without mailto:)') ->hideUnless('LinkType')->isEqualTo('email')->end(), - TextField::create('Telephone', 'Telephone (without +)') + TextField::create('Telephone', 'Telephone') ->hideUnless('LinkType')->isEqualTo('telephone')->end(), UploadField::create('File', 'File') ->setFolderName('Uploads') @@ -189,7 +189,7 @@ public function Link() $link = 'mailto:'.$this->Email; break; case 'telephone': - $link = 'tel:+'.$this->Telephone; + $link = 'tel:'.$this->Telephone; break; case 'file': $link = $this->File()->URL;