fix week view of calendar
This commit is contained in:
parent
dfa0f2d9b3
commit
ae0717a560
2 changed files with 3 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
- add type variable to Data Form record loop
|
- add type variable to Data Form record loop
|
||||||
- fix: Select All button javascript would not work in IE
|
- fix: Select All button javascript would not work in IE
|
||||||
- fix: Events were missing startDateMonth and endDateMonth template vars
|
- fix: Events were missing startDateMonth and endDateMonth template vars
|
||||||
|
- fix: Events don't display on last day of week on week view
|
||||||
|
|
||||||
7.4.6
|
7.4.6
|
||||||
- Prevent Help index from trying to link to non-existant documentation
|
- Prevent Help index from trying to link to non-existant documentation
|
||||||
|
|
|
||||||
|
|
@ -1277,8 +1277,9 @@ sub viewWeek {
|
||||||
$dt->subtract(days => $dt->day_of_week % 7 - $first_dow);
|
$dt->subtract(days => $dt->day_of_week % 7 - $first_dow);
|
||||||
|
|
||||||
my $start = $dt->toMysql;
|
my $start = $dt->toMysql;
|
||||||
my $dtEnd = $dt->clone->add(days => 7)->add(seconds => -1);
|
my $dtEnd = $dt->clone->add(days => 7);
|
||||||
my $end = $dtEnd->toMysql; # Clone to prevent saving change
|
my $end = $dtEnd->toMysql; # Clone to prevent saving change
|
||||||
|
$dtEnd->add(seconds => -1);
|
||||||
|
|
||||||
my @events = $self->getEventsIn($start,$end);
|
my @events = $self->getEventsIn($start,$end);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue