- Timestamp:
- 01/27/16 17:04:36 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Employment.pm
r1675 r1676 53 53 my %done; 54 54 55 my @dates = sort { $a cmp $b }55 my @dates = 56 56 map { $employments{$_}->{end} } 57 57 grep { $employments{$_}->{end} } (keys %employments); 58 58 59 59 if (!@dates) { 60 push(@dates, $now);61 60 foreach (1 .. 12) { 62 61 push(@dates, DateTime->now->add(months => $_)->ymd); … … 64 63 } 65 64 66 foreach my $emp (@dates) { 65 push(@dates, $now); 66 67 foreach my $emp (sort { $a cmp $b } @dates) { 67 68 $done{$emp} and next; 68 69 $done{$emp} = 1;
Note: See TracChangeset
for help on using the changeset viewer.