Update card.php

This commit is contained in:
Laurent Destailleur 2022-11-26 00:10:15 +01:00 committed by GitHub
parent 9f5a046e10
commit 4b7157e82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,7 +538,7 @@ if (empty($reshook)) {
if (!empty($contact->socid)) {
$sql .= ", fk_soc=".((int) $contact->socid);
} elseif ($socid > 0) {
$sql .= ", fk_soc=''";
$sql .= ", fk_soc = null";
setEventMessages($langs->trans("WarningUserDifferentContactSocid"), '', 'warnings'); // Add message if post socid != $contact->socid
}
$sql .= " WHERE rowid = ".((int) $object->id);