This commit is contained in:
Frédéric France 2025-03-01 16:35:22 +01:00
parent 0ec7241b2d
commit 17358bb6e4
No known key found for this signature in database
GPG key ID: CE25B0B7B53B9177
3 changed files with 3 additions and 5 deletions

View file

@ -167,7 +167,7 @@ print '</form><br><br>';
if (getDolGlobalString('CLICKTODIAL_URL')) {
$user->fetch_clicktodial();
$phonefortest = $mysoc->phone;
$phonefortest = $mysoc->phone ?? '';
if (GETPOST('phonefortest')) {
$phonefortest = GETPOST('phonefortest');
}

View file

@ -623,7 +623,7 @@ class Contact extends CommonObject
$this->name_alias = trim($this->name_alias);
$this->lastname = trim($this->lastname) ? trim($this->lastname) : trim($this->lastname);
$this->firstname = trim($this->firstname);
$this->email = trim($this->email);
$this->email = trim($this->email ?? '');
$this->phone_pro = trim($this->phone_pro);
$this->phone_perso = trim($this->phone_perso);
$this->phone_mobile = trim($this->phone_mobile);

View file

@ -2,7 +2,7 @@
/* Copyright (C) 2023-2024 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2023-2024 Lionel Vessiller <lvessiller@easya.solutions>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -158,8 +158,6 @@ class WebPortalMember extends Adherent
//public $phone;
//public $phone_perso;
//public $phone_mobile;
//public $email;
//public $url;
//public $socialnetworks;
//public $login;
/**