mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-11 13:38:39 +00:00
fix tests
This commit is contained in:
parent
290f2e87ea
commit
3e37d5f89d
|
|
@ -2098,16 +2098,18 @@ final class ApiController extends Controller
|
|||
*/
|
||||
private function createProfileForAccount(Account $account, RequestAbstract $request) : void
|
||||
{
|
||||
// @todo: why do we need the following lines?
|
||||
if (($request->getDataString('password') ?? '') === ''
|
||||
|| ($request->getDataString('user') ?? '') === ''
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->app->moduleManager->get('Profile')->apiProfileCreateDbEntry(
|
||||
new \Modules\Profile\Models\Profile($account),
|
||||
$request
|
||||
);
|
||||
$request->setData('iaccount-idlist', $account->id);
|
||||
|
||||
$internalResponse = new HttpResponse();
|
||||
|
||||
$this->app->moduleManager->get('Profile', 'Api')->apiProfileCreate($request, $internalResponse);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user