bug fixes / dbmapper fixes

This commit is contained in:
Dennis Eichhorn 2021-12-19 20:20:38 +01:00
parent 2a764a1545
commit bd25adaa6e
3 changed files with 3 additions and 5 deletions

View File

@ -1074,8 +1074,6 @@ final class ApiController extends Controller
return;
}
$old = clone $account;
$this->app->moduleManager->get('Profile')->apiProfileCreateDbEntry(
new \Modules\Profile\Models\Profile($account),
$request

View File

@ -340,7 +340,7 @@ final class BackendController extends Controller
$id = $request->getData('id') ?? '';
$view->setData('modules', $this->app->moduleManager->getAllModules());
$view->setData('active', $this->app->moduleManager->getActiveModules());
$view->setData('installed', $installed = $this->app->moduleManager->getInstalledModules());
$view->setData('installed',$this->app->moduleManager->getInstalledModules());
$view->setData('id', $id);
$type = 'Help';

View File

@ -144,12 +144,12 @@ final class AccountMapperTest extends \PHPUnit\Framework\TestCase
/** @var Account $accountR */
$accountR = AccountMapper::get()->where('id', 1)->execute();
TestUtils::setMember($accountR, 'password', '');
AccountMapper::update()->execute($accountR);
AccountMapper::update()->with('password')->execute($accountR);
self::assertEquals(LoginReturnType::EMPTY_PASSWORD, AccountMapper::login($accountR->login, 'orange'));
$accountR->generatePassword('orange');
AccountMapper::update()->execute($accountR);
AccountMapper::update()->with('password')->execute($accountR);
}
/**