File tree 4 files changed +16
-9
lines changed
4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 3
3
- fixed #12268: Point of sale form missing from cart screen.
4
4
- fixed #12201: AssetReport - no selects.
5
5
- fixed #12269: Login / Loginbox with encryptlogin
6
+ - fixed #12271: Calendar List View does not always show labels
6
7
7
8
7.10.23
8
9
- fixed #12225: Stock asset, multiple instances on a page
Original file line number Diff line number Diff line change @@ -1133,7 +1133,7 @@ sub viewList {
1133
1133
);
1134
1134
1135
1135
# ## Build the event vars
1136
- my $dtLast = $dtStart ; # The DateTime of the last event
1136
+ my $dtLast = WebGUI::DateTime -> new(0) ; # The DateTime of the last event
1137
1137
EVENT: for my $event (@events ) {
1138
1138
next EVENT unless $event && $event -> canView();
1139
1139
my ( %eventVar , %eventDate )
@@ -1142,12 +1142,15 @@ sub viewList {
1142
1142
# Add the change flags
1143
1143
my $dt = $event -> getDateTimeStart;
1144
1144
if ( $dt -> year > $dtLast -> year ) {
1145
- $eventVar { new_year } = 1;
1145
+ $eventVar { new_year } = 1;
1146
+ $eventVar { new_month } = 1;
1147
+ $eventVar { new_day } = 1;
1146
1148
}
1147
- if ( $dt -> month > $dtLast -> month ) {
1149
+ elsif ( $dt -> month > $dtLast -> month ) {
1148
1150
$eventVar { new_month } = 1;
1151
+ $eventVar { new_day } = 1;
1149
1152
}
1150
- if ( $dt -> day > $dtLast -> day ) {
1153
+ elsif ( $dt -> day > $dtLast -> day ) {
1151
1154
$eventVar { new_day } = 1;
1152
1155
}
1153
1156
Original file line number Diff line number Diff line change @@ -241,15 +241,15 @@ our $HELP = {
241
241
],
242
242
variables => [
243
243
{
244
- name => ' newYear ' ,
244
+ name => ' new_year ' ,
245
245
description => ' helpvar newYear' ,
246
246
},
247
247
{
248
- name => ' newMonth ' ,
248
+ name => ' new_month ' ,
249
249
description => ' helpvar newMonth' ,
250
250
},
251
251
{
252
- name => ' newDay ' ,
252
+ name => ' new_day ' ,
253
253
description => ' helpvar newDay' ,
254
254
},
255
255
{
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ use Data::Dumper;
57
57
use WebGUI::Asset::Wobject::Calendar;
58
58
use WebGUI::Asset::Event;
59
59
60
- plan tests => 15 + scalar @icalWrapTests ;
61
-
62
60
my $session = WebGUI::Test-> session;
63
61
64
62
# Do our work in the import node
@@ -571,6 +569,9 @@ cmp_deeply(
571
569
' ... correct set of events in list view'
572
570
);
573
571
572
+ ok(exists $listVars -> {events }-> [0]-> {new_year } && $listVars -> {events }-> [0]-> {new_year }, ' first event has new_year set' );
573
+ ok(exists $listVars -> {events }-> [0]-> {new_month } && $listVars -> {events }-> [0]-> {new_month }, ' first event has new_month set' );
574
+ ok(exists $listVars -> {events }-> [0]-> {new_day } && $listVars -> {events }-> [0]-> {new_day }, ' first event has new_day set' );
574
575
575
576
# #####################################################################
576
577
#
@@ -606,3 +607,5 @@ cmp_deeply(
606
607
[],
607
608
' but getFeeds still returns a data structure.'
608
609
);
610
+
611
+ done_testing;
You can’t perform that action at this time.
0 commit comments