mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-18 01:08:41 +00:00
Test fixes
This commit is contained in:
parent
0378c59da8
commit
b830560d28
|
|
@ -204,7 +204,13 @@ final class ApiController extends Controller
|
||||||
$this->app->moduleManager->get('Admin')->apiGroupCreate($newRequest, $internalResponse, $data);
|
$this->app->moduleManager->get('Admin')->apiGroupCreate($newRequest, $internalResponse, $data);
|
||||||
|
|
||||||
/** @var \Modules\Admin\Models\Group $group */
|
/** @var \Modules\Admin\Models\Group $group */
|
||||||
$group = $internalResponse->getDataArray($newRequest->uri->__toString())['response'];
|
$group = $internalResponse->getDataArray($newRequest->uri->__toString())['response'] ?? null;
|
||||||
|
if ($group === null) {
|
||||||
|
$response->header->status = RequestStatusCode::R_400;
|
||||||
|
$this->createInvalidCreateResponse($request, $response, $group);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$content = \json_encode([$group->id]);
|
$content = \json_encode([$group->id]);
|
||||||
if ($content === false) {
|
if ($content === false) {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
# Structure
|
|
||||||
|
|
||||||
## ER
|
|
||||||
|
|
||||||

|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 77 KiB |
|
|
@ -14,8 +14,6 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\Organization\Models;
|
namespace Modules\Organization\Models;
|
||||||
|
|
||||||
use Modules\Media\Models\NullMedia;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Organization null class.
|
* Organization null class.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,8 @@
|
||||||
*/
|
*/
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Modules\Organization\Models\Status;
|
|
||||||
use Modules\Organization\Models\NullPosition;
|
use Modules\Organization\Models\NullPosition;
|
||||||
|
use Modules\Organization\Models\Status;
|
||||||
use phpOMS\Uri\UriFactory;
|
use phpOMS\Uri\UriFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"creator": {
|
"creator": {
|
||||||
"name": "Jingga",
|
"name": "Jingga",
|
||||||
"website": "jingga.app"
|
"website": "https://jingga.app"
|
||||||
},
|
},
|
||||||
"description": "The business module.",
|
"description": "The business module.",
|
||||||
"directory": "Organization",
|
"directory": "Organization",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user