Permalink
Browse files

importer fixes

  • Loading branch information...
1 parent 9521ca9 commit 05ec46766d0cbce3a24f83bd96581c09aedb3c6f @aembler aembler committed Feb 28, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 web/concrete/core/libraries/content/importer.php
View
5 web/concrete/core/libraries/content/importer.php
@@ -501,7 +501,10 @@ protected function importAttributeCategories(SimpleXMLElement $sx) {
if (isset($sx->attributecategories)) {
foreach($sx->attributecategories->category as $akc) {
$pkg = ContentImporter::getPackageObject($akc['package']);
- $akx = AttributeKeyCategory::add($akc['handle'], $akc['allow-sets'], $pkg);
+ $akx = AttributeKeyCategory::getByHandle($akc['handle']);
+ if (!is_object($akx)) {
+ $akx = AttributeKeyCategory::add($akc['handle'], $akc['allow-sets'], $pkg);
+ }
}
}
}

0 comments on commit 05ec467

Please sign in to comment.