diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 85ae70c3e3..6c91c0f0a4 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -2882,6 +2882,7 @@ phutil_register_library_map(array( 'PhabricatorDocumentRef' => 'applications/files/document/PhabricatorDocumentRef.php', 'PhabricatorDocumentRenderingEngine' => 'applications/files/document/render/PhabricatorDocumentRenderingEngine.php', 'PhabricatorDoorkeeperApplication' => 'applications/doorkeeper/application/PhabricatorDoorkeeperApplication.php', + 'PhabricatorDoubleExportField' => 'infrastructure/export/field/PhabricatorDoubleExportField.php', 'PhabricatorDraft' => 'applications/draft/storage/PhabricatorDraft.php', 'PhabricatorDraftDAO' => 'applications/draft/storage/PhabricatorDraftDAO.php', 'PhabricatorDraftEngine' => 'applications/transactions/draft/PhabricatorDraftEngine.php', @@ -8540,6 +8541,7 @@ phutil_register_library_map(array( 'PhabricatorDocumentRef' => 'Phobject', 'PhabricatorDocumentRenderingEngine' => 'Phobject', 'PhabricatorDoorkeeperApplication' => 'PhabricatorApplication', + 'PhabricatorDoubleExportField' => 'PhabricatorExportField', 'PhabricatorDraft' => 'PhabricatorDraftDAO', 'PhabricatorDraftDAO' => 'PhabricatorLiskDAO', 'PhabricatorDraftEngine' => 'Phobject', diff --git a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php index f85c79621c..68f87a6f6b 100644 --- a/src/applications/maniphest/query/ManiphestTaskSearchEngine.php +++ b/src/applications/maniphest/query/ManiphestTaskSearchEngine.php @@ -516,7 +516,7 @@ final class ManiphestTaskSearchEngine ); if (ManiphestTaskPoints::getIsEnabled()) { - $fields[] = id(new PhabricatorIntExportField()) + $fields[] = id(new PhabricatorDoubleExportField()) ->setKey('points') ->setLabel('Points'); } diff --git a/src/infrastructure/export/field/PhabricatorDoubleExportField.php b/src/infrastructure/export/field/PhabricatorDoubleExportField.php new file mode 100644 index 0000000000..18087dd706 --- /dev/null +++ b/src/infrastructure/export/field/PhabricatorDoubleExportField.php @@ -0,0 +1,25 @@ +setDataType(PHPExcel_Cell_DataType::TYPE_NUMERIC); + } + + public function getCharacterWidth() { + return 8; + } + +} diff --git a/src/infrastructure/export/format/PhabricatorExcelExportFormat.php b/src/infrastructure/export/format/PhabricatorExcelExportFormat.php index 2b0c787884..606df393d0 100644 --- a/src/infrastructure/export/format/PhabricatorExcelExportFormat.php +++ b/src/infrastructure/export/format/PhabricatorExcelExportFormat.php @@ -155,8 +155,12 @@ EOHELP return $this->sheet; } + + /** + * @phutil-external-symbol class PHPExcel_Cell + */ private function getCellName($col, $row = null) { - $col_name = chr(ord('A') + $col); + $col_name = PHPExcel_Cell::stringFromColumnIndex($col); if ($row === null) { return $col_name;