We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c64327 commit e468aa3Copy full SHA for e468aa3
inc/targetticket.class.php
@@ -901,6 +901,14 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
901
// Cleanup actors array
902
$data = $this->cleanActors($data);
903
904
+ // Specific format for actors in tickets
905
+ // @see CommonITILObject::setTechAndGroupFromItilCategory()
906
+ if ($data['_users_id_assign'] === 0) {
907
+ $data['_users_id_assign'] = [];
908
+ $data['_users_id_assign_notif']['use_notification'] = [];
909
+ $data['_users_id_assign_notif']['alternative_email'] = [];
910
+ }
911
+
912
// Create the target ticket
913
$data['_auto_import'] = true;
914
if (!$ticketID = $ticket->add($data)) {
0 commit comments