mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-18 17:28:40 +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);
|
||||
|
||||
/** @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]);
|
||||
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;
|
||||
|
||||
use Modules\Media\Models\NullMedia;
|
||||
|
||||
/**
|
||||
* Organization null class.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
use Modules\Organization\Models\Status;
|
||||
use Modules\Organization\Models\NullPosition;
|
||||
use Modules\Organization\Models\Status;
|
||||
use phpOMS\Uri\UriFactory;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user