From 0a6b4e98b57446d71883a749bb93bfb5fe11e2c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 19 Aug 2014 14:13:21 +0000 Subject: [PATCH] * Addressbook: no longer offering to move contacts to accounts addressbook, as we do not support that --- addressbook/inc/class.addressbook_ui.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index dc9bf792ca..52289a34e9 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -496,6 +496,7 @@ class addressbook_ui extends addressbook_bo // move to AB if (($move2addressbooks = $this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should { + unset($move2addressbooks[0]); // do not offer action to move contact to an account, as we dont support that currrently foreach($move2addressbooks as $owner => $label) { $this->type_icon((int)$owner, substr($owner,-1) == 'p', 'n', $icon, $type_label); @@ -2066,6 +2067,7 @@ window.egw_LAB.wait(function() { $sel_options['fileas_type'] = $this->fileas_options($content); $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_ADD); + if ($content['owner']) unset($sel_options['owner'][0]); // do not offer to switch to accounts, as we do not support moving contacts to accounts if ((string) $content['owner'] !== '') { if (!isset($sel_options['owner'][(int)$content['owner']]))