Skip to content

Commit 2a5c140

Browse files
author
Oleksii Korshenko
authored
Merge pull request #1642 from magento-engcom/develop-prs
Public Pull Requests #11855 FilterBuilder Doc Block Update by @ByteCreation #11730 Fix #11729 - negative value in excel export by @hauso Fixed Public Issues #11729 Exported Excel with negative number can't be opened by MS Office
2 parents 7ec352a + 63cf998 commit 2a5c140

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/internal/Magento/Framework/Api/FilterBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function setField($field)
2929
/**
3030
* Set value
3131
*
32-
* @param string $value
32+
* @param string|array $value
3333
* @return $this
3434
*/
3535
public function setValue($value)

lib/internal/Magento/Framework/Convert/Excel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ protected function _getXmlRow($row, $useCallback)
147147
}
148148
if (isset($value[0]) && in_array($value[0], ['=', '+', '-'])) {
149149
$value = ' ' . $value;
150+
$dataType = 'String';
150151
}
151152

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

0 commit comments

Comments
 (0)