mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-21 22:22:15 +01:00
* Addressbook: show username for accounts as a column in the list too
This commit is contained in:
parent
3fabd1f2cb
commit
16ba791902
@ -23,6 +23,7 @@
|
||||
<column width="50"/>
|
||||
<column width="80" disabled="@no_event_column"/>
|
||||
<column width="120"/>
|
||||
<column width="120"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row class="th">
|
||||
@ -99,6 +100,7 @@
|
||||
<nextmatch-sortheader label="Created" id="contact_created" sortmode="DESC"/>
|
||||
<nextmatch-sortheader label="Last modified" id="contact_modified" sortmode="DESC"/>
|
||||
</et2-vbox>
|
||||
<nextmatch-sortheader label="Username" id="account_lid" sortmode="ASC"/>
|
||||
</row>
|
||||
<row class="$row_cont[class] $row_cont[cat_id]" valign="top">
|
||||
<et2-image align="center" label="$row_cont[type_label]" src="$row_cont[type]" noLang="1" style="font-size: 22px"/>
|
||||
@ -171,6 +173,7 @@
|
||||
<et2-date-time id="${row}[modified]" readonly="true" class="noBreak"></et2-date-time>
|
||||
<et2-select-account id="${row}[modifier]" readonly="true"></et2-select-account>
|
||||
</et2-vbox>
|
||||
<et2-description id="${row}[account_lid]"></et2-description>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -134,6 +134,7 @@ class Ldap
|
||||
var $schema2egw = array(
|
||||
'posixaccount' => array(
|
||||
'account_id' => 'uidnumber',
|
||||
'account_lid' => 'uid',
|
||||
'shadowexpire',
|
||||
),
|
||||
'inetorgperson' => array(
|
||||
@ -199,6 +200,7 @@ class Ldap
|
||||
'pubkey' => 'usersmimecertificate',
|
||||
'uid' => 'objectguid',
|
||||
'id' => 'objectguid',
|
||||
'account_lid' => 'samaccountname',
|
||||
],
|
||||
#displayName
|
||||
#mozillaCustom1
|
||||
|
@ -607,6 +607,7 @@ class Sql extends Api\Storage
|
||||
strpos($join,$GLOBALS['egw']->accounts->backend->table) === false && !array_key_exists('account_id',$filter))
|
||||
{
|
||||
$join .= self::ACCOUNT_ACTIVE_JOIN;
|
||||
$extra_cols[] = 'account_lid AS account_lid';
|
||||
if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'] === '0')
|
||||
{
|
||||
$filter[] = str_replace('UNIX_TIMESTAMP(NOW())',time(),self::ACOUNT_ACTIVE_FILTER);
|
||||
|
Loading…
Reference in New Issue
Block a user