Verified Commit 14334532 authored by Cyril Vazquez's avatar Cyril Vazquez
Browse files

Add counter on message references to avoid duplicate identifiers

parent 0588470c
......@@ -256,7 +256,7 @@ class ArchiveRestitution extends abstractMessage
$archiveRestitutionRequestController = \laabs::newController("medona/ArchiveRestitutionRequest");
if (!$identifier) {
$identifier = "archiveModificationNotification_".date("Y-m-d-H-i-s");
$identifier = "archiveRestitutionRequest_".date("Y-m-d-H-i-s");
}
$reference = $identifier;
......@@ -279,9 +279,8 @@ class ArchiveRestitution extends abstractMessage
}
$i = 1;
$unique = array(
'type' => 'ArchiveModificationNotification',
'type' => 'ArchiveRestitutionRequest',
'senderOrgRegNumber' => $senderOrgRegNumber,
'reference' => $reference,
);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment