[Bps-public-commit] rtx-calendar branch multiple-days-events-2 updated. 1.05-21-gebaae43
BPS Git Server
git at git.bestpractical.com
Thu Nov 16 14:49:34 UTC 2023
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtx-calendar".
The branch, multiple-days-events-2 has been updated
via ebaae43ca25a8201be6b957f834963027c1bc702 (commit)
from 8b28a35ec32be1d0fc1e8b41ae0621125a6b59b0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ebaae43ca25a8201be6b957f834963027c1bc702
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Thu Nov 16 11:42:42 2023 -0300
Fix switching to January
There was a bug when switching from February to January or December to
January because we send 0 to represent January and it was interpreted as
false.
Now we check if the month argument is defined and if not we set it to
the current month.
diff --git a/html/Elements/Calendar b/html/Elements/Calendar
index 4af069e..0a89c15 100644
--- a/html/Elements/Calendar
+++ b/html/Elements/Calendar
@@ -192,7 +192,7 @@ while ($date <= $end) {
</div>
<%INIT>
my $NotFirstAccess = $DECODED_ARGS->{NotFirstAccess};
-my $Month = $DECODED_ARGS->{Month} || (localtime)[4];
+my $Month = defined $DECODED_ARGS->{Month} ? $DECODED_ARGS->{Month} : (localtime)[4];
my $Year = $DECODED_ARGS->{Year} || (localtime)[5] + 1900;
my $Query = $DECODED_ARGS->{Query};
my $Format = $DECODED_ARGS->{Format};
-----------------------------------------------------------------------
Summary of changes:
html/Elements/Calendar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
rtx-calendar
More information about the Bps-public-commit
mailing list