Verified Commit 65b47deb authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Fix Message type (seda or medona) for workflows

parent 273ee7f8
...@@ -182,7 +182,7 @@ class ArchiveDeliveryRequest extends abstractMessage ...@@ -182,7 +182,7 @@ class ArchiveDeliveryRequest extends abstractMessage
$message->messageId = \laabs::newId(); $message->messageId = \laabs::newId();
$schema = "medona"; $schema = "medona";
if (\laabs::hasBundle('seda') && $archives[0]->descriptionClass == 'archivesPubliques/content') { if (\laabs::hasBundle('seda')) {
$schema = "seda"; $schema = "seda";
} }
$message->schema = $schema; $message->schema = $schema;
......
...@@ -42,7 +42,7 @@ class ArchiveDestructionNotification extends ArchiveNotification ...@@ -42,7 +42,7 @@ class ArchiveDestructionNotification extends ArchiveNotification
$message->type = "ArchiveDestructionNotification"; $message->type = "ArchiveDestructionNotification";
$schema = "medona"; $schema = "medona";
if (\laabs::hasBundle('seda') && $archives[0]->descriptionClass == 'archivesPubliques/content') { if (\laabs::hasBundle('seda')) {
$schema = "seda"; $schema = "seda";
} }
$message->schema = $schema; $message->schema = $schema;
......
...@@ -108,7 +108,7 @@ class ArchiveDestructionRequest extends abstractMessage ...@@ -108,7 +108,7 @@ class ArchiveDestructionRequest extends abstractMessage
$message->messageId = \laabs::newId(); $message->messageId = \laabs::newId();
$schema = "medona"; $schema = "medona";
if (\laabs::hasBundle('seda') && $archives[0]->descriptionClass == 'archivesPubliques/content') { if (\laabs::hasBundle('seda')) {
$schema = "seda"; $schema = "seda";
} }
$message->schema = $schema; $message->schema = $schema;
......
...@@ -46,7 +46,7 @@ class ArchiveModificationNotification extends ArchiveNotification ...@@ -46,7 +46,7 @@ class ArchiveModificationNotification extends ArchiveNotification
$message->type = "ArchiveModificationNotification"; $message->type = "ArchiveModificationNotification";
$schema = "medona"; $schema = "medona";
if (\laabs::hasBundle('seda') && $archives[0]->descriptionClass == 'archivesPubliques/content') { if (\laabs::hasBundle('seda')) {
$schema = "seda"; $schema = "seda";
} }
$message->schema = $schema; $message->schema = $schema;
......
...@@ -130,7 +130,7 @@ class ArchiveRestitutionRequest extends abstractMessage ...@@ -130,7 +130,7 @@ class ArchiveRestitutionRequest extends abstractMessage
$message->messageId = \laabs::newId(); $message->messageId = \laabs::newId();
$message->schema = "medona"; $message->schema = "medona";
if (\laabs::hasBundle('seda') && $archives[0]->descriptionClass == 'archivesPubliques/content') { if (\laabs::hasBundle('seda')) {
$message->schema = "seda"; $message->schema = "seda";
} }
......
Markdown is supported
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