Fix #14027 : emptying social network value on contact wasn't working
This commit is contained in:
parent
f91e7e4917
commit
f6e0ed08e2
@ -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') != '') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user