Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions assets/js/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export { initializeCalendar }
const htmlTag = document.getElementsByTagName('html')[0];
const lang = htmlTag.attributes['lang'].value;

const minimumAge = dayjs().subtract(18, 'year');
const maximumAge = minimumAge.subtract(122, 'year');
const now = dayjs()
const minimumAge = now.subtract(18, 'year');
const maximumAge = now.subtract(120, 'year');

const options = {
inputMode: true,
Expand Down
1 change: 1 addition & 0 deletions assets/scss/bewelcome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ a.active .metric .value {
}

.community-news-wrapper img,
.accommodation img,
figure > img {
max-width: 100%;
height: auto;
Expand Down
8 changes: 4 additions & 4 deletions build/gallery/gallery.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public function getLatestItems($userId = false, $galleryId = false, $numRows = f
a.`title` AS album,
a.`id` AS albumId
FROM `gallery_items` AS i
LEFT JOIN `members` AS `m` ON
LEFT JOIN `member` AS `m` ON
m.`id` = i.`user_id_foreign`
LEFT JOIN `gallery_items_to_gallery` AS `g` ON
g.`item_id_foreign` = i.`id`
Expand Down Expand Up @@ -414,7 +414,7 @@ public function getNextItems($imageId,$limit = 1,$userId = false,$galleryId = fa
i.`title`,
i.`created`
FROM `gallery_items` AS i
LEFT JOIN `members` AS `m` ON
LEFT JOIN `member` AS `m` ON
m.`id` = i.`user_id_foreign`
WHERE i.`id` > '.(int)$imageId.'
';
Expand Down Expand Up @@ -448,7 +448,7 @@ public function getPreviousItems($imageId,$limit = 1,$userId = false,$galleryId
i.`title`,
i.`created`
FROM `gallery_items` AS i
LEFT JOIN `members` AS `m` ON
LEFT JOIN `member` AS `m` ON
m.`id` = i.`user_id_foreign`
WHERE i.`id` < '.(int)$imageId.'
';
Expand Down Expand Up @@ -517,7 +517,7 @@ public function imageData($itemId)
i.`description`,
i.`created`
FROM `gallery_items` AS i,
members as m
member as m
WHERE i.`id` = ". (int)$itemId . "
AND m.id = i.user_id_foreign
AND m.Status IN ('Active', 'ChoiceInactive', 'Pending', 'OutOfRemind')
Expand Down
16 changes: 8 additions & 8 deletions build/search/search.model.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,12 @@ private function getDetailsForMembers()
) c ON c.IdToMember = m.id
LEFT JOIN (
SELECT
COUNT(*) As photoCount, IdMember
COUNT(*) As photoCount, member_id
FROM
membersphotos
member_photo
GROUP BY
IdMember
) mp ON mp.IdMember = m.id
member_id
) mp ON mp.member_id = m.id
WHERE
{$this->maxGuestCondition}
{$this->statusCondition}
Expand Down Expand Up @@ -792,13 +792,13 @@ public function prepareQuery($vars, $adminUnits = [], $country = false)
$this->joins .= "
LEFT JOIN (
SELECT
COUNT(*) As photoCount, IdMember
COUNT(*) As photoCount, member_id
FROM
membersphotos
member_photo
GROUP BY
IdMember) mp
member_id) mp
ON
mp.IdMember = m.id
mp.member_id = m.id
";
}
if (!empty($this->commentsCondition)) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"nelmio/security-bundle": "3.*",
"nesbot/carbon": "3.*",
"pagerfanta/pagerfanta": "^v4.4.0",
"phpdocumentor/reflection-docblock": "^6.0",
"phpdocumentor/reflection-docblock": "^5.2",
"phpstan/phpdoc-parser": "^2.3",
"ramsey/uuid-doctrine": "2.*",
"stof/doctrine-extensions-bundle": "^1.7",
Expand Down
Loading
Loading