diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index 3bede63c9f..3b40612388 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -11,6 +11,9 @@ \**************************************************************************/ /* $Id$ */ + + // NOTE: This entire file needs to be rewritten. There is a great deal of code not being used + // anymore. (jengo) $abc = array('company' => 'company', // AddressBook Columns and their descriptions 'firstname' => 'first name', diff --git a/addressbook/view.php b/addressbook/view.php index 916dfb0341..aa427dbf28 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -66,16 +66,17 @@ $i++; $columns_html .= ""; } - $owner = $phpgw->db->f("ab_owner"); $access = $phpgw->db->f("ab_access"); - + $owner = $phpgw->db->f("ab_owner"); + $ab_id = $phpgw->db->f("ab_id"); + echo $columns_html . ' '; echo "" . lang("Record owner") . "" . $phpgw->common->grab_owner_name($phpgw->db->f("ab_owner")) . "" . lang("Record Access") . ""; if ($access != "private" && $access != "public") { - echo lang("Group access") . $phpgw->accounts->convert_string_to_names_access($access); + echo lang("Group access") . " - " . $phpgw->accounts->convert_string_to_names_access($access); } else { echo $access; @@ -87,7 +88,7 @@ common->check_owner($owner,"edit.php","Edit"); + echo $phpgw->common->check_owner($owner,"edit.php","Edit","ab_id=$ab_id"); ?>