From 4e02c5ba538fa04b481b095ee8edc9a2e4112c4a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Thu, 18 Nov 2021 10:48:31 +0800 Subject: [PATCH] * Fix product issues during replication sprint. --- module/execution/control.php | 4 ++++ module/execution/view/create.html.php | 14 ++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index c427af1184..49ff183f3c 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1398,6 +1398,10 @@ class execution extends control $this->view->qdUsers = $qdUsers; $this->view->rdUsers = $rdUsers; $this->view->users = $this->loadModel('user')->getPairs('nodeleted|noclosed'); + $this->view->PO = isset($copyExecution->PO) ? $copyExecution->PO : ''; + $this->view->QD = isset($copyExecution->QD) ? $copyExecution->QD : ''; + $this->view->PM = isset($copyExecution->PM) ? $copyExecution->PM : ''; + $this->view->RD = isset($copyExecution->RD) ? $copyExecution->RD : ''; $this->view->from = $this->app->tab; $this->display(); } diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index a9ce44a861..065e19c1d0 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -105,16 +105,18 @@
+ type != 'normal' and isset($branchGroups[$product->id]);?> + id] as $branchID => $branch):?>
- type != 'normal' and isset($branchGroups[$product->id]);?>
id, "class='form-control chosen' onchange='loadBranches(this)' data-last='" . $product->id . "'");?> - id], $product->branch, "class='form-control chosen' onchange=\"loadPlans('#products{$i}', this.value)\"");?> + id], $branchID, "class='form-control chosen' onchange=\"loadPlans('#products{$i}', this.value)\"");?>
+
@@ -161,13 +163,13 @@
execution->PO;?> - +
execution->QD;?> - +
@@ -175,13 +177,13 @@
execution->PM;?> - +
execution->RD;?> - +