Update card.php

This commit is contained in:
Laurent Destailleur 2022-07-11 10:54:23 +02:00 committed by GitHub
parent 796f718012
commit 204bf2e618
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1803,8 +1803,10 @@ if ($action == 'create' && $usercancreate) {
}
// Other attributes
if (!empty($origin) && !empty($originid) && is_object($objectsrc))
$parameters = array();
if (!empty($origin) && !empty($originid) && is_object($objectsrc)) {
$parameters['objectsrc'] = $objectsrc;
}
$parameters['socid'] = $socid;
// Note that $action and $object may be modified by hook