From 43d340fd2f05ec6d00a82341628dd7193e8ed24d Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Mon, 24 Oct 2022 10:12:38 +0800 Subject: [PATCH 1/2] * Fix bug export. --- module/bug/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/config.php b/module/bug/config.php index a2dc0c6292..2a7fec515d 100644 --- a/module/bug/config.php +++ b/module/bug/config.php @@ -306,7 +306,7 @@ $config->bug->datatable->fieldList['story']['fixed'] = 'no'; $config->bug->datatable->fieldList['story']['width'] = '120'; $config->bug->datatable->fieldList['story']['required'] = 'no'; $config->bug->datatable->fieldList['story']['control'] = 'select'; -$config->bug->datatable->fieldList['story']['dataSource'] = array('module' => 'bug', 'method' =>'getRelatedObjects', 'params' => 'story&id,title'); +$config->bug->datatable->fieldList['story']['dataSource'] = array('module' => 'story', 'method' =>'getProductStoryPairs', 'params' => '$productID'); $config->bug->datatable->fieldList['task']['title'] = 'task'; $config->bug->datatable->fieldList['task']['fixed'] = 'no'; From f5e4fbbe9ce33b727361060a27c6a6e2480cb065 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Mon, 24 Oct 2022 10:17:41 +0800 Subject: [PATCH 2/2] * Set memory_limit for export. --- module/port/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/port/model.php b/module/port/model.php index 207c062800..0f30d9aa1a 100644 --- a/module/port/model.php +++ b/module/port/model.php @@ -185,6 +185,8 @@ class portModel extends model */ public function export($model = '') { + ini_set('memory_limit', '-1'); + $fields = $this->post->exportFields; /* Init config fieldList */