From 83e09932e27d95ebd748b8e03ba7c8b87850c000 Mon Sep 17 00:00:00 2001 From: Yagami Date: Tue, 28 Mar 2023 08:58:57 +0800 Subject: [PATCH 1/5] * Code for https://www.zentao.net/ask/596328.html. --- module/repo/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/model.php b/module/repo/model.php index 18071a5972..1495a87fd5 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -1871,7 +1871,7 @@ class repoModel extends model $_POST['objectType'][1] = 'task'; $_POST['objectID'][1] = $taskID; $_POST['work'][1] = str_replace('
', "\n", $action->comment); - if(is_dir($this->app->getModuleRoot() . 'effort')) + if($this->config->edition != 'open') { $this->loadModel('effort')->batchCreate(); } From ef9ffec7107ce4908f69a517c52e5663b66dc286 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 28 Mar 2023 09:12:28 +0800 Subject: [PATCH 2/5] * Remove the blue font color when the link is unclickable. --- module/kanban/view/importexecution.html.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/kanban/view/importexecution.html.php b/module/kanban/view/importexecution.html.php index d643868bf6..ff5cf423a5 100644 --- a/module/kanban/view/importexecution.html.php +++ b/module/kanban/view/importexecution.html.php @@ -67,7 +67,11 @@ if($execution->type == 'stage') $isClickable = $this->programplan->checkLeafStage($execution->id) ? true : false; ?> - >name;?> + + name;?> + + name;?> + name;?> From b498d4d6771a8679621c9aad9345ca080bd6b342 Mon Sep 17 00:00:00 2001 From: Lufei Date: Tue, 28 Mar 2023 10:41:54 +0800 Subject: [PATCH 3/5] * Change User-agent for http requests. --- module/common/model.php | 104 +++++++++++++++++++++------------------- 1 file changed, 55 insertions(+), 49 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 2454506cd5..fbcdcdba81 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -136,7 +136,7 @@ class commonModel extends model * * @param object $execution * @access public - * @return object $parentExecution + * @return object|false $parentExecution */ public function syncExecutionByChild($execution) { @@ -1474,15 +1474,20 @@ class commonModel extends model echo "