From 3f9feedfe7d98c51d2cc011eaf09f8339b6186d9 Mon Sep 17 00:00:00 2001 From: mayue Date: Tue, 12 Apr 2022 14:12:03 +0800 Subject: [PATCH] * Fix bug #18065. --- module/bug/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/bug/control.php b/module/bug/control.php index 7d55a0a81e..5f9cf69ae4 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -2045,6 +2045,8 @@ class bug extends control */ public function export($productID, $orderBy, $browseType = '', $executionID = 0) { + if($this->config->systemMode == 'classic') $this->config->bug->list->exportFields = str_replace(' project,', '', $this->config->bug->list->exportFields); + if($_POST) { $this->loadModel('file'); @@ -2054,6 +2056,7 @@ class bug extends control /* Create field lists. */ $fields = $this->post->exportFields ? $this->post->exportFields : explode(',', $bugConfig->list->exportFields); + foreach($fields as $key => $fieldName) { $fieldName = trim($fieldName);