Verified Commit eab9d978 authored by Alexis Ragot's avatar Alexis Ragot
Browse files

fix message reference

parent 5ef953c9
This diff is collapsed.
......@@ -38,7 +38,7 @@ class ArchiveTransferComposition extends \ext\archivesPubliques\bundle\seda\Cont
$message->status = 'template';
}
$message->reference = $message->reference . "_" . \laabs::newTimestamp()->getTimestamp()
$message->reference = $message->reference . "_" . \laabs::newTimestamp()->getTimestamp();
if ($this->sdoFactory->exists('medona/message', array('type'=>$message->type, 'senderOrgRegNumber'=>$message->senderOrgRegNumber, 'reference'=>$message->reference))) {
throw \laabs::newException("seda/invalidMessageException", "L'identifiant du message existe déjà.");
......
......@@ -38,7 +38,7 @@ class ArchiveTransferComposition extends \ext\archivesPubliques\bundle\seda2\Con
$message->status = 'template';
}
$message->reference = $message->reference . "_" . \laabs::newTimestamp()->getTimestamp()
$message->reference = $message->reference . "_" . \laabs::newTimestamp()->getTimestamp();
if ($this->sdoFactory->exists('medona/message', array('type'=>$message->type, 'senderOrgRegNumber'=>$message->senderOrgRegNumber, 'reference'=>$message->reference))) {
throw \laabs::newException("seda/invalidMessageException", "L'identifiant du message existe déjà.");
......
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