Skip to content

Commit

Permalink
MAGETWO-82851: Fix #11729 - negative value in excel export [M2.2] #11757
Browse files Browse the repository at this point in the history
  • Loading branch information
ishakhsuvarov authored Oct 27, 2017
2 parents 1355fa6 + 2a84261 commit 010322b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/Magento/Framework/Convert/Excel.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ protected function _getXmlRow($row, $useCallback)
}
if (isset($value[0]) && in_array($value[0], ['=', '+', '-'])) {
$value = ' ' . $value;
$dataType = 'String';
}

$value = str_replace("\r\n", '
', $value);
Expand Down

0 comments on commit 010322b

Please sign in to comment.