- Timestamp:
- 02/01/16 16:25:45 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Summary/Offices.pm
r1694 r1695 29 29 my $users = $base->fetchObjectInfo( 30 30 'user', 31 [ qw(sn givenName ) ],31 [ qw(sn givenName description) ], 32 32 'active=1' 33 33 ); … … 61 61 @{$c->stash->{office}{$sitename}{$office}}, 62 62 { 63 displayName => sprintf('%s %s', $user->{givenName}[0], $user->{sn}[0]), 63 displayName => ($user->{sn}[0] 64 ? sprintf('%s %s', $user->{givenName}[0], $user->{sn}[0]) 65 : $user->{description}[0]), 64 66 phone => $addresses->{$ad}{telephoneNumber}[0], 65 67 isMainAddress => $addresses->{$ad}{isMainAddress}[0],
Note: See TracChangeset
for help on using the changeset viewer.