confattendee merge OK to replace thirdparty

This commit is contained in:
Dorian Vabre 2021-05-10 16:04:13 +02:00
parent f6956d6a62
commit bf25fd0834
2 changed files with 19 additions and 1 deletions

View File

@ -1070,6 +1070,23 @@ class ConferenceOrBoothAttendee extends CommonObject
return $error;
}
/**
* Function used to replace a thirdparty id with another one.
*
* @param DoliDB $db Database handler
* @param int $origin_id Old thirdparty id
* @param int $dest_id New thirdparty id
* @return bool
*/
public static function replaceThirdparty(DoliDB $db, $origin_id, $dest_id)
{
$tables = array(
'conferenceorboothattendee'
);
return CommonObject::commonReplaceThirdparty($db, $origin_id, $dest_id, $tables);
}
}

View File

@ -270,7 +270,8 @@ if (empty($reshook)) {
'Product' => '/product/class/product.class.php',
'Project' => '/projet/class/project.class.php',
'Ticket' => '/ticket/class/ticket.class.php',
'User' => '/user/class/user.class.php'
'User' => '/user/class/user.class.php',
'ConfOrBoothAttendee' => '/eventorganization/class/conferenceorboothattendee.class.php'
);
//First, all core objects must update their tables