Update card.php

This commit is contained in:
EchoLoGeek 2022-11-25 22:34:53 +01:00 committed by GitHub
parent b04d4dd867
commit 8cb2cb0429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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