mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
feature to show contact_id in list and editview; ability to sort by contact_id, ability to search for contact_id (or parts of it), so beware if you search for a contact by id, you may find more than one, since the number you search for may be part of the content of more than one field and contacts, as numbers can occur also in eg.: phonenumber, roomnumber, ZIP-Code, ...
This commit is contained in:
parent
e0de91c4ef
commit
b5a015bf3a
@ -128,7 +128,7 @@ class addressbook_so
|
||||
* In SQL we can search all columns, though a view make on real sense
|
||||
*/
|
||||
var $sql_cols_not_to_search = array(
|
||||
'jpegphoto','owner','tid','private','id','cat_id','etag',
|
||||
'jpegphoto','owner','tid','private','cat_id','etag',
|
||||
'modified','modifier','creator','created','tz','account_id',
|
||||
'uid',
|
||||
);
|
||||
@ -615,6 +615,7 @@ class addressbook_so
|
||||
unset($cols[$key]);
|
||||
}
|
||||
}
|
||||
if ($col=='contact_id') $col='egw_addressbook.contact_id';
|
||||
}
|
||||
|
||||
$backend->columns_to_search = $cols;
|
||||
|
@ -972,6 +972,9 @@ class addressbook_ui extends addressbook_bo
|
||||
case 'contact_created':
|
||||
$order = "$query[order] IS NULL,$query[order] $sort,org_name $sort,n_family $sort,n_given $sort";
|
||||
break;
|
||||
case 'contact_id':
|
||||
$order = "$query[order] $sort";
|
||||
break;
|
||||
}
|
||||
if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter
|
||||
{
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,6 @@
|
||||
.cursorHand { cursor: hand; }
|
||||
.countrySelect select { width: 150px; }
|
||||
.contactid:before { content:"#" }
|
||||
.emailCol div { width: 100%; overflow: hidden; }
|
||||
.redItalic { color: red; font-style: italic; }
|
||||
.fixedHeight,.telNumbers { height: 12px; }
|
||||
|
Loading…
Reference in New Issue
Block a user