Merge pull request #14030 from atm-maxime/fix_contact_update_socialnetworks

Fix #14027 : emptying social network value on contact wasn't working
This commit is contained in:
Laurent Destailleur 2020-06-06 21:57:32 +02:00 committed by GitHub
commit 30ea9a497d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,6 +403,7 @@ if (empty($reshook))
//$object->twitter = GETPOST("twitter", 'alpha');
//$object->facebook = GETPOST("facebook", 'alpha');
//$object->linkedin = GETPOST("linkedin", 'alpha');
$object->socialnetworks = array();
if (!empty($conf->socialnetworks->enabled)) {
foreach ($socialnetworks as $key => $value) {
if (GETPOSTISSET($key) && GETPOST($key, 'alphanohtml') != '') {