Unverified Commit 104f1af7 authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix/#12115 : fix wrong if condition

parent a22db088
......@@ -408,7 +408,7 @@ class ArchiveDeliveryRequest extends abstractMessage
foreach ($messageIds as $messageId) {
// Avoid parallel processing
$message = $this->sdoFactory->read('medona/message', (string) $messageId);
if (!$message->status != 'accepted') {
if ($message->status != 'accepted') {
continue;
}
$this->changeStatus($message->messageId, "processing");
......
......@@ -325,7 +325,7 @@ class ArchiveDestructionRequest extends abstractMessage
foreach ($messageIds as $messageId) {
// Avoid parallel processing
$message = $this->sdoFactory->read('medona/message', (string) $messageId);
if (!$message->status != 'validated') {
if ($message->status != 'validated') {
continue;
}
$this->changeStatus($message->messageId, "processing");
......
......@@ -375,7 +375,7 @@ class ArchiveRestitutionRequest extends abstractMessage
foreach ($messageIds as $messageId) {
// Avoid parallel processing
$message = $this->sdoFactory->read('medona/message', (string) $messageId);
if (!$message->status != 'accepted') {
if ($message->status != 'accepted') {
continue;
}
$this->changeStatus($message->messageId, "processing");
......
......@@ -754,7 +754,7 @@ class ArchiveTransfer extends abstractMessage
// Avoid paralleling processing
$message = $this->sdoFactory->read('medona/message', (string) $messageId);
if (!$message->status != 'accepted') {
if ($message->status != 'accepted') {
continue;
}
......
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