Changeset 530


Ignore:
Timestamp:
10/27/09 16:16:57 (15 years ago)
Author:
nanardon
Message:
  • fix user mail forms
Location:
LATMOS-Accounts-Web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Users.pm

    r497 r530  
    116116            if ($c->req->param('usermail')) { 
    117117                $c->stash->{user}->set_c_fields( 
    118                     mail => $c->req->param('mail'), 
     118                    mail => $c->req->param('mail') || undef, 
    119119                    aliases => [ grep { $_ } $c->req->param('aliases') ], 
    120                     revaliases => $c->req->param('revaliases'), 
    121                     forward => $c->req->param('forward'), 
     120                    revaliases => $c->req->param('revaliases') || undef, 
     121                    forward => $c->req->param('forward') || undef, 
    122122                ) and $base->commit; 
    123123            } 
  • LATMOS-Accounts-Web/root/html/users/mail.tt

    r528 r530  
    8080[% IF c.model('Accounts').db.check_acl(user, 'forward', 'w') %] 
    8181[% showsubmit = 1 %] 
    82 <input type="text" name="forward" value="[% forward.get_c_field('forward').join(',') | html %]"> 
     82<input type="text" name="forward" value="[% user.get_c_field('forward').join(',') | html %]"> 
    8383[% ELSE %] 
    84 [% forward.get_c_field('forward').join(',') | html %] 
     84[% user.get_c_field('forward').join(',') | html %] 
    8585[% END %] 
    8686</td> 
Note: See TracChangeset for help on using the changeset viewer.