Skip to content

Commit 8aedb74

Browse files
authored
v2.2.4 (#223)
2 parents 075029f + 3fa0194 commit 8aedb74

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.3
1+
2.2.4

cli.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/php:php8.3
1+
FROM bfren/php:php8.4
22

33
ENV BF_PHP_EXT="curl session sodium pecl-yaml"
44

src/app.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class App
3131
*/
3232
public static function init(bool $is_http = true): void
3333
{
34-
// ensure we are running on PHP 8.3
35-
version_compare(PHP_VERSION, "8.3.0", ">=") || self::die("This application requires at least PHP 8.3.");
34+
// ensure we are running on PHP 8.4
35+
version_compare(PHP_VERSION, "8.4.0", ">=") || self::die("This application requires at least PHP 8.4.");
3636

3737
// get current working directory
3838
$cwd = __DIR__;

src/classes/rota/rota.class.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,8 @@ public function apply_filters(array $filters, Lectionary $lectionary): array
149149
$series_filter = new Series_Filter();
150150

151151
foreach ($this->services as $service) {
152-
// only include services that have ministries with assigned people
153-
$include = count($service->ministries) > 0;
154-
155152
// apply person filter
156-
$include = $include && $person_filter->apply($lectionary, $service, Arr::get($filters, "person", ""));
153+
$include = $person_filter->apply($lectionary, $service, Arr::get($filters, "person", ""));
157154

158155
// apply date filters
159156
$include = $include && $after_filter->apply($lectionary, $service, Arr::get($filters, "start", ""));

src/pages/rota/services-part.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929

3030
<!-- Date -->
3131
<h5 class="card-title"><?php _e($day->date->format(C::$formats->display_date)); ?></h5>
32+
<?php if($day->name): ?>
3233
<h6 class="card-subtitle mb-2 text-muted"><?php _e($day->name); ?> &ndash; <?php _e($day->colour) ?></h6>
34+
<?php endif; ?>
3335

3436
<!-- Services -->
3537
<?php foreach ($day->services as $combined_service) : ?>

src/pages/upload/rota-period.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public static function create(DateTimeImmutable $first_day, DateTimeImmutable $l
4242
"order_by" => "name",
4343
"group_by" => "time",
4444
"date_start" => $first_day->format("Y-m-d"),
45-
"date_end" => $last_day->format("Y-m-d")
45+
"date_end" => $last_day->format("Y-m-d"),
46+
"show_empty_dates" => "1"
4647
);
4748
$href = sprintf(self::ROTA_HREF, C::$churchsuite->org, http_build_query($query_values));
4849

0 commit comments

Comments
 (0)