From b970654f4fa59fda27beae0f93cd78e602f3b2e5 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 3 Jun 2007 13:21:13 +0000 Subject: [PATCH] "bugfix: removed change-org checkbox in view" --- addressbook/inc/class.uicontacts.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index a46dd3eece..859a4d098d 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -1489,6 +1489,7 @@ class uicontacts extends bocontacts $readonlys['button[save]'] = $readonlys['button[apply]'] = $readonlys['change_photo'] = true; $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE,$content); $readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT,$content); + $content['disable_change_org'] = true; // ToDo: fix vCard export $readonlys['button[vcard]'] = true; @@ -1543,7 +1544,7 @@ $readonlys['button[vcard]'] = true; $GLOBALS['egw_info']['flags']['currentid'] = $content['id']; $this->tmpl->exec('addressbook.uicontacts.view',$content,$sel_options,$readonlys,array('id' => $content['id'])); - + $GLOBALS['egw']->hooks->process(array( 'location' => 'addressbook_view', 'ab_id' => $content['id']