mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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
8be6483a2a
commit
e840850db2
@ -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',
|
||||
);
|
||||
@ -609,6 +609,7 @@ class addressbook_so
|
||||
unset($cols[$key]);
|
||||
}
|
||||
}
|
||||
if ($col=='contact_id') $col='egw_addressbook.contact_id';
|
||||
}
|
||||
|
||||
$backend->columns_to_search = $cols;
|
||||
|
@ -972,6 +972,8 @@ 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";
|
||||
}
|
||||
if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter
|
||||
{
|
||||
|
@ -112,4 +112,4 @@ if ($GLOBALS['egw_info']['user']['apps']['addressbook'] &&
|
||||
unset($contacts); unset($bdays);
|
||||
|
||||
echo "\n<!-- Birthday info -->\n";
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,7 @@
|
||||
.cursorHand { cursor: hand; }
|
||||
.countrySelect select { width: 150px; }
|
||||
.custom_country input {display: none; }
|
||||
.contactid:before { content:"#" }
|
||||
.emailCol div { width: 100%; overflow: hidden; }
|
||||
.redItalic { color: red; font-style: italic; }
|
||||
.fixedHeight,.telNumbers { height: 12px; }
|
||||
@ -83,4 +84,4 @@ fieldset.emailGroup {
|
||||
}
|
||||
.image16 img {
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user