Skip to content

Commit

Permalink
Load folder id and default to that if not specified for group members…
Browse files Browse the repository at this point in the history
… in OX < 6.22.
  • Loading branch information
yunosh committed Mar 19, 2014
1 parent 9504538 commit 7c0c3d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions framework/OpenXchange/lib/Horde/OpenXchange/Contacts.php
Expand Up @@ -37,6 +37,7 @@ class Horde_OpenXchange_Contacts extends Horde_OpenXchange_Base
*/
protected $_columns = array(
1 => 'id',
20 => 'folder_id',
100 => 'categories',
223 => 'uid',
500 => 'name',
Expand Down
Expand Up @@ -30,6 +30,7 @@ abstract class Horde_OpenXchange_EventsAndTasks extends Horde_OpenXchange_Base
*/
protected $_columns = array(
1 => 'id',
20 => 'folder_id',
100 => 'categories',
101 => 'private',
200 => 'title',
Expand Down
3 changes: 3 additions & 0 deletions turba/bin/turba-import-openxchange
Expand Up @@ -216,6 +216,9 @@ while ($row = fgetcsv($fp, 0, ' ')) {
$count++;
foreach ($group['members'] as $member) {
if (isset($member['id'])) {
if (!isset($member['folder_id'])) {
$member['folder_id'] = $group['folder_id'];
}
$object->addMember(
$contactMap[$member['folder_id']][$member['id']][1],
$contactMap[$member['folder_id']][$member['id']][0]
Expand Down

0 comments on commit 7c0c3d0

Please sign in to comment.