From 03d9357d487657af2198f38c0df479296cd901b3 Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 5 Dec 2022 08:08:28 +0000 Subject: [PATCH] * Resolve feedback #909. --- module/transfer/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/transfer/model.php b/module/transfer/model.php index 8da0aea25f..1cee8c3173 100644 --- a/module/transfer/model.php +++ b/module/transfer/model.php @@ -1447,7 +1447,7 @@ class transferModel extends model if($model == 'bug' and $field == 'steps') $selected = str_replace("\n\n\n\n\n\n", '', $selected); $html .= '' . html::textarea("$name", $selected, "class='form-control' cols='50' rows='1'") . ''; } - elseif($field == 'stepDesc' or $field == 'stepExpect') + elseif($field == 'stepDesc' or $field == 'stepExpect' or $field == 'precondition') { $stepDesc = $this->process4Testcase($field, $tmpList, $row); if($stepDesc) $html .= '' . $stepDesc . ''; @@ -1484,7 +1484,7 @@ class transferModel extends model } /** - * Process stepExpect and stepDesc for testcase. + * Process stepExpect、stepDesc and precondition for testcase. * * @param int $field * @param int $datas @@ -1497,6 +1497,7 @@ class transferModel extends model $stepData = $this->testcase->processDatas($datas); $html = ''; + if($field == 'precondition' and isset($datas[$key])) return html::textarea("precondition[$key]", htmlSpecialString($datas[$key]->precondition), "class='form-control' style='overflow:hidden'"); if($field == 'stepExpect') return $html; if(isset($stepData[$key]['desc'])) {