From 6ff6bedea4f1aae9ded9b6e3b7363ee79b2f4fed Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 26 Jun 2013 09:38:33 +0200 Subject: Disable dragging/copying of contact groups --- program/steps/addressbook/copy.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'program/steps') diff --git a/program/steps/addressbook/copy.inc b/program/steps/addressbook/copy.inc index 480a9b52e..59b4ffcc6 100644 --- a/program/steps/addressbook/copy.inc +++ b/program/steps/addressbook/copy.inc @@ -57,6 +57,10 @@ foreach ($cids as $source => $cid) foreach ($cid as $cid) { $a_record = $CONTACTS->get_record($cid, true); + // avoid copying groups + if ($a_record['_type'] == 'group') + continue; + // Check if contact exists, if so, we'll need it's ID // Note: Some addressbooks allows empty email address field if (!empty($a_record['email'])) -- cgit v1.2.3