Ignore:
Timestamp:
12/27/15 19:14:19 (9 years ago)
Author:
nanardon
Message:

Add month split to accage

Location:
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller
Files:
2 edited

Legend:

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

    r1483 r1541  
    3939        foreach (@{ $create{$user} }) { 
    4040            $_ or next; 
    41             $_ =~ s/-.*//; 
     41            if ($c->req->query_keywords eq 'month') { 
     42                $_ =~ s/^(\d+-\d+).*/$1-15/; 
     43            } else { 
     44                $_ =~ s/^(\d+).*/$1-06-30/; 
     45            } 
    4246            my $status = $exists{$user} ? 'active' : 'inactive'; 
    4347            $dates{active}{$_} ||= 0; 
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Summary/AccAge.pm

    r1485 r1541  
    2525    my ( $self, $c ) = @_; 
    2626 
    27     $c->stash->{jsonurl} ||= $c->uri_for('/json/accage'); 
     27    $c->stash->{jsonurl} ||= $c->uri_for('/json/accage') . '?' . $c->req->query_keywords; 
    2828} 
    2929 
Note: See TracChangeset for help on using the changeset viewer.