Merge pull request #19366 from atm-florianm/NEW_15.0_replicate_extrafields_from_origin_when_creating_intervention

NEW 15.0: (minor) replicate extrafields of origin onto new intervention
This commit is contained in:
Laurent Destailleur 2021-11-15 10:53:35 +01:00 committed by GitHub
commit 06bbaa2672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -837,6 +837,10 @@ if ($action == 'create') {
$note_private = (!empty($objectsrc->note) ? $objectsrc->note : (!empty($objectsrc->note_private) ? $objectsrc->note_private : GETPOST('note_private', 'restricthtml')));
$note_public = (!empty($objectsrc->note_public) ? $objectsrc->note_public : GETPOST('note_public', 'restricthtml'));
// Replicate extrafields
$objectsrc->fetch_optionals();
$object->array_options = $objectsrc->array_options;
// Object source contacts list
$srccontactslist = $objectsrc->liste_contact(-1, 'external', 1);
}