Ignore:
Timestamp:
01/27/16 17:04:36 (8 years ago)
Author:
nanardon
Message:

always add today on graph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/Employment.pm

    r1675 r1676  
    5353    my %done; 
    5454 
    55     my @dates = sort { $a cmp $b } 
     55    my @dates = 
    5656        map { $employments{$_}->{end}  } 
    5757        grep { $employments{$_}->{end} } (keys %employments); 
    5858 
    5959    if (!@dates) { 
    60         push(@dates, $now); 
    6160        foreach (1 .. 12) { 
    6261            push(@dates, DateTime->now->add(months => $_)->ymd); 
     
    6463    } 
    6564 
    66     foreach my $emp (@dates) { 
     65    push(@dates, $now); 
     66 
     67    foreach my $emp (sort { $a cmp $b } @dates) { 
    6768        $done{$emp} and next; 
    6869        $done{$emp} = 1; 
Note: See TracChangeset for help on using the changeset viewer.