Skip to content

Commit

Permalink
Merge branch 'release/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
therouv committed May 4, 2017
2 parents c36e7b1 + d0201ac commit 11c8fff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions Model/File/Writer/AbstractWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,8 @@ protected function _prepareDataHierarchical(array $exportData)
{
$return = array();
foreach ($exportData as $row) {
$pathDetails = explode('/', $row['path']);
if (!isset($return[$pathDetails[0]])) {
$return[$pathDetails[0]] = array();
}
if (!isset($return[$pathDetails[0]][$pathDetails[1]])) {
$return[$pathDetails[0]][$pathDetails[1]] = array();
}
if (!isset($return[$pathDetails[0]][$pathDetails[1]][$pathDetails[2]])) {
$return[$pathDetails[0]][$pathDetails[1]][$pathDetails[2]] = array();
}
if (!isset($return[$pathDetails[0]][$pathDetails[1]][$pathDetails[2]][$row['scope']])) {
$return[$pathDetails[0]][$pathDetails[1]][$pathDetails[2]][$row['scope']] = array();
}
$return[$pathDetails[0]][$pathDetails[1]][$pathDetails[2]][$row['scope']][$row['scope_id']] = $row['value'];
list($firstPart, $secondPart, $thirdPart) = explode('/', $row['path'], 3);
$return[$firstPart][$secondPart][$thirdPart][$row['scope']][$row['scope_id']] = $row['value'];
}

return $return;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module is inspired by the awesome n98-magerun plugin "HarrisStreet ImpEx" b

## Facts

Version: 2.2.1
Version: 2.2.2

## Functionality

Expand Down

0 comments on commit 11c8fff

Please sign in to comment.