From 4dd1445e8bced2dcab7f10ea4e9f80607ebb863a Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 21 Jun 2022 05:48:57 +0000 Subject: [PATCH 1/2] * Finish task #57872. --- extension/lite/task/ext/view/batchcreate.html.php | 2 +- module/company/control.php | 9 +++++++++ module/company/view/dynamic.html.php | 2 +- module/task/view/batchcreate.html.php | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/extension/lite/task/ext/view/batchcreate.html.php b/extension/lite/task/ext/view/batchcreate.html.php index 69fe4dc162..a6a4a28c62 100644 --- a/extension/lite/task/ext/view/batchcreate.html.php +++ b/extension/lite/task/ext/view/batchcreate.html.php @@ -114,7 +114,7 @@
- + diff --git a/module/company/control.php b/module/company/control.php index 346fb6865c..523e7c954b 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -224,6 +224,15 @@ class company extends control /* Get executions' list.*/ $executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode'); + $executionsIDList = array_keys($executions); + $executionsList = $this->execution->getByIdList($executionsIDList); + foreach($executionsList as $executionsID => $execution) + { + foreach($projects as $projectsID => $projectName) + { + if($execution->project == $projectsID) $executions[$execution->id] = $projectName . '/' . $execution->name; + } + } $executions = array($this->lang->execution->common) + $executions; $this->view->executions = $executions; diff --git a/module/company/view/dynamic.html.php b/module/company/view/dynamic.html.php index d61d57213f..8fdb863bb0 100644 --- a/module/company/view/dynamic.html.php +++ b/module/company/view/dynamic.html.php @@ -35,7 +35,7 @@ systemMode == 'new'):?>
-
+
company->order, $orderBy, 'class="form-control chosen" data-max_drop_width="215" data-disable_search="true"'); ?>
action->dynamic->search;?>
diff --git a/module/task/view/batchcreate.html.php b/module/task/view/batchcreate.html.php index 7d2eff9f44..363d589017 100755 --- a/module/task/view/batchcreate.html.php +++ b/module/task/view/batchcreate.html.php @@ -122,7 +122,7 @@
- + From d8ba49e688af381280dff6df5cdfeccda1d8dc66 Mon Sep 17 00:00:00 2001 From: zhouxudong Date: Tue, 21 Jun 2022 06:01:59 +0000 Subject: [PATCH 2/2] * Finisha task #57872. --- module/company/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/company/control.php b/module/company/control.php index 523e7c954b..e47f29c356 100644 --- a/module/company/control.php +++ b/module/company/control.php @@ -226,11 +226,11 @@ class company extends control $executions = $this->loadModel('execution')->getPairs(0, 'all', 'nocode'); $executionsIDList = array_keys($executions); $executionsList = $this->execution->getByIdList($executionsIDList); - foreach($executionsList as $executionsID => $execution) + foreach($executionsList as $executionsID => $executionObj) { - foreach($projects as $projectsID => $projectName) + foreach($projects as $projectsID => $projectsName) { - if($execution->project == $projectsID) $executions[$execution->id] = $projectName . '/' . $execution->name; + if($executionObj->project == $projectsID) $executions[$executionObj->id] = $projectsName . '/' . $executionObj->name; } } $executions = array($this->lang->execution->common) + $executions;