From e70be4c0c2d150c20a73b1e53ce5408575574ec2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 2 May 2009 21:52:46 +0000 Subject: Cache the entry in our in-memory map when we map a g2 item to a g3 item in the database. This fixes the problem that the import fails the first time around because the various groups are mapped in the db but aren't available in the request. --- modules/g2_import/helpers/g2_import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/g2_import/helpers') diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 7e8bc598..bc6061ea 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -136,7 +136,7 @@ class g2_import_Core { } $g2_admin_group_id = - g2(GalleryCoreApi::getPluginParameter("module", "core", "id.adminGroup"));; + g2(GalleryCoreApi::getPluginParameter("module", "core", "id.adminGroup")); $g2_user = g2(GalleryCoreApi::loadEntitiesById($g2_user_id)); $g2_groups = g2(GalleryCoreApi::fetchGroupsForUser($g2_user->getId())); @@ -312,5 +312,6 @@ class g2_import_Core { $g2_map->g3_id = $g3_id; $g2_map->g2_id = $g2_id; $g2_map->save(); + self::$map[$g2_id] = $g3_id; } } -- cgit v1.2.3