Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop

develop-unstable
Sami Mokaddem 2022-12-13 15:45:44 +01:00
commit 35a395c68c
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 5 additions and 5 deletions

View File

@ -140,7 +140,7 @@ class NotifyAdminsBehavior extends Behavior
$entity->id
]),
];
$this->notifySiteAdmins($entity->getSource(), $title, $message, $data);
$this->notifySiteAdmins($entity->getSource(), $title, $data, $message);
}
public function notifySiteAdminsForEntityDeletion(EntityInterface $entity): void
@ -168,7 +168,7 @@ class NotifyAdminsBehavior extends Behavior
$entity->id
]),
];
$this->notifySiteAdmins($entity->getSource(), $title, $message, $data);
$this->notifySiteAdmins($entity->getSource(), $title, $data, $message);
}
/**
@ -187,8 +187,8 @@ class NotifyAdminsBehavior extends Behavior
public function notifySiteAdmins(
string $origin,
string $title,
string $message,
array $data
array $data,
string $message = ''
): void {
$this->InboxProcessors = $this->InboxProcessors ?: TableRegistry::getTableLocator()->get('InboxProcessors');
$processor = $this->InboxProcessors->getProcessor('Notification', 'DataChange');

View File

@ -1,4 +1,4 @@
{
"version": "1.8",
"version": "1.9",
"application": "Cerebrate"
}