Merge pull request 'feature/update-soko-web-to-0.7' (!35) from feature/update-soko-web-to-0.7 into master
All checks were successful
rvr-nextgen/pipeline/head This commit looks good

Reviewed-on: #35
This commit is contained in:
Bence Pőcze 2023-04-30 21:07:16 +02:00 committed by Gitea
commit d707c20ab6
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6
4 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@
}
],
"require": {
"esoko/soko-web": "0.6",
"esoko/soko-web": "0.7",
"firebase/php-jwt": "^6.4"
},
"require-dev": {

8
composer.lock generated
View File

@ -4,15 +4,15 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "7b9e3854a5b7ef69d360c1dfbac75c17",
"content-hash": "71f3adc97b2d83ac1d57112ecce65fac",
"packages": [
{
"name": "esoko/soko-web",
"version": "0.6",
"version": "v0.7",
"source": {
"type": "git",
"url": "https://git.esoko.eu/esoko/soko-web.git",
"reference": "5e0579463cf0f4203c46e0d4f9c09cd283dbf0b8"
"reference": "88a2a99527b51dfb240ec78ac7070dc36a1022b6"
},
"require": {
"phpmailer/phpmailer": "^6.8",
@ -33,7 +33,7 @@
"GNU GPL 3.0"
],
"description": "Lightweight web framework",
"time": "2023-04-19T21:35:03+00:00"
"time": "2023-04-30T18:20:27+00:00"
},
{
"name": "firebase/php-jwt",

View File

@ -48,7 +48,7 @@ class CommunityController implements IAuthenticationRequired
return null;
}
\Container::$persistentDataManager->loadRelationsFromDb($community, false);
\Container::$persistentDataManager->loadRelationsFromDb($community, false, ['main_currency']);
return new HtmlContent('communities/community', [
'community' => $community,
@ -326,7 +326,7 @@ class CommunityController implements IAuthenticationRequired
private function getMembers(Community $community): array
{
$members = iterator_to_array($this->communityMemberRepository->getAllByCommunity($community, true, [User::class]));
$members = iterator_to_array($this->communityMemberRepository->getAllByCommunity($community, true, ['user']));
usort($members, function($a, $b) {
return strnatcmp($a->getUser()->getDisplayName(), $b->getUser()->getDisplayName());
});

View File

@ -28,7 +28,7 @@ class HomeController implements IAuthenticationRequired
*/
$user = \Container::$request->user();
$ownCommunityMembers = $this->communityMemberRepository->getAllByUser($user, true, [Community::class]);
$ownCommunityMembers = $this->communityMemberRepository->getAllByUser($user, true, ['community']);
$communities = [];
foreach ($ownCommunityMembers as $ownCommunityMember) {
$communities[] = $ownCommunityMember->getCommunity();