Ignore:
Timestamp:
09/20/12 10:37:15 (12 years ago)
Author:
nanardon
Message:

add attachment support in mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Ajax/Services/Mailing.pm

    r1135 r1158  
    8686} 
    8787 
     88sub attachments :Local { 
     89    my ( $self, $c ) = @_; 
     90    foreach ($c->req->param('rm_attachment')) { 
     91        $c->session->{mailing}{attachments}[$_ -1] = undef; 
     92    } 
     93 
     94    $c->session->{mailing}{attachments} = [ 
     95        grep { $_ } 
     96        @{ 
     97        $c->session->{mailing}{attachments} || []} 
     98    ]; 
     99} 
     100 
    88101sub end : Private { 
    89102    my ( $self, $c ) = @_; 
Note: See TracChangeset for help on using the changeset viewer.