diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 816b73e..13fd8ea 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -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 diff --git a/Controller/BackendController.php b/Controller/BackendController.php index e0575ec..dc8e1c1 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -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'; diff --git a/tests/Models/AccountMapperTest.php b/tests/Models/AccountMapperTest.php index 98559aa..7bd6978 100755 --- a/tests/Models/AccountMapperTest.php +++ b/tests/Models/AccountMapperTest.php @@ -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); } /**