mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-18 13:18:41 +00:00
Test fixes
This commit is contained in:
parent
bdaf777637
commit
903964d70e
|
|
@ -107,11 +107,13 @@ final class ApiController extends Controller
|
|||
$accounts[] = $card->createdBy->id;
|
||||
}
|
||||
|
||||
if ($card->commentList !== null) {
|
||||
foreach ($card->commentList->comments as $element) {
|
||||
if ($element->createdBy->id !== $comment->createdBy->id) {
|
||||
$accounts[] = $element->createdBy->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($accounts as $account) {
|
||||
$notification = new Notification();
|
||||
|
|
@ -456,7 +458,14 @@ final class ApiController extends Controller
|
|||
public function apiCommentCreate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
|
||||
{
|
||||
$this->app->moduleManager->get('Comment', 'Api')->apiCommentCreate($request, $response, $data);
|
||||
$comment = $response->getDataArray($request->uri->__toString())['response'];
|
||||
$comment = $response->getDataArray($request->uri->__toString())['response'] ?? null;
|
||||
|
||||
if ($comment === null) {
|
||||
$response->header->status = RequestStatusCode::R_400;
|
||||
$this->createInvalidCreateResponse($request, $response, $comment);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$this->createCommentNotifications($comment, $request);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
# Structure
|
||||
|
||||
## ER
|
||||
|
||||

|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 184 KiB |
|
|
@ -19,7 +19,3 @@ Other modules that work great with this one together are:
|
|||
* [Tasks](Tasks)
|
||||
* [ProjectManagement](ProjectManagement)
|
||||
* [EventManagement](EventManagement)
|
||||
|
||||
# Dependencies
|
||||
|
||||
* [Editor](Editor)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user