forked from extern/egroupware
changed db selection to work with ttracker
This commit is contained in:
parent
447abe485b
commit
7647221d96
@ -137,7 +137,7 @@
|
||||
if (isset($query) && $query) {
|
||||
if (isset($phpgw_info["apps"]["timetrack"]["enabled"]) &&
|
||||
$phpgw_info["apps"]["timetrack"]["enabled"]) {
|
||||
$phpgw->db->query("SELECT a.ab_id,a.ab_owner,a.ab_firstname,a.ab_lastname,"
|
||||
$phpgw->db->query("SELECT a.ab_id,a.ab_owner,a.ab_firstname,a.ab_lastname,a.ab_company_id,"
|
||||
. "a.ab_email,a.ab_wphone,c.company_name,a.ab_hphone,a.ab_fax,a.ab_mphone "
|
||||
. "from addressbook as a, customers as c where a.ab_company_id = c.company_id "
|
||||
. "AND $filtermethod AND (a.ab_lastname like '"
|
||||
@ -169,7 +169,19 @@
|
||||
|
||||
$ab_id = $phpgw->db->f("ab_id");
|
||||
|
||||
while ($column = each($columns_to_display)) {
|
||||
while ($column = each($columns_to_display)) {
|
||||
if ($column[0] == "company") {
|
||||
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
||||
$field = $phpgw->db->f("company_name");
|
||||
} else {
|
||||
$field = $phpgw->db->f("ab_company");
|
||||
}
|
||||
} else {
|
||||
$field = $phpgw->db->f("ab_" . $column[0]);
|
||||
}
|
||||
|
||||
/*
|
||||
while ($column = each($columns_to_display)) {
|
||||
if ($phpgw_info["apps"]["timetrack"]["enabled"]) {
|
||||
if ($column[0] == "company") {
|
||||
$field = $phpgw->db->f("company_name");
|
||||
@ -178,9 +190,9 @@
|
||||
}
|
||||
} else {
|
||||
$field = $phpgw->db->f("ab_" . $column[0]);
|
||||
}
|
||||
} */
|
||||
|
||||
$field = $phpgw->strip_html($field);
|
||||
$field = htmlentities($field);
|
||||
|
||||
// Some fields require special formating.
|
||||
if ($column[0] == "url") {
|
||||
|
Loading…
Reference in New Issue
Block a user