Ignore:
Timestamp:
01/09/16 15:20:05 (8 years ago)
Author:
nanardon
Message:

Select nextEmployment if there is no current one

File:
1 edited

Legend:

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

    r1519 r1619  
    100100        # Exceptions... 
    101101        /^employment$/ and do { 
    102             $arg ||= $c->stash->{user}->get_attributes('currentEmployment'); 
     102            $arg ||= $c->stash->{user}->get_attributes('currentEmployment') || 
     103                     $c->stash->{user}->get_attributes('nextEmployment'); 
    103104 
    104105            $c->stash->{employment} = $base->get_object('employment', $arg) unless($arg =~ /^\@/); 
Note: See TracChangeset for help on using the changeset viewer.