This commit is contained in:
caoyanyi
2022-11-07 09:50:00 +08:00
parent 591cc27bb5
commit ddfade7db2
3 changed files with 15 additions and 6 deletions
+9 -1
View File
@@ -1436,7 +1436,15 @@ class testcaseModel extends model
$cases[$key] = $caseData;
$line++;
}
if(!empty($fieldNames)) dao::$errors = sprintf($this->lang->testcase->noRequireTip, implode(',', $fieldNames));
if(!empty($fieldNames))
{
$tipContent = '';
foreach($requiredFields as $field)
{
if(isset($fieldNames[$field])) $tipContent .= ",{$fieldNames[$field]}";
}
dao::$errors = sprintf($this->lang->testcase->noRequireTip, trim($tipContent, ','));
}
if(dao::isError()) return false;
+2 -2
View File
@@ -26,7 +26,7 @@ $(function()
<div class="main-header clearfix">
<h2><?php echo $lang->testcase->import;?></h2>
</div>
<form target='hiddenwin' method='post'>
<form class='main-form' target='hiddenwin' method='post'>
<div class="table-responsive">
<table class='table table-form' id='showData'>
<thead>
@@ -163,7 +163,7 @@ $(function()
</tbody>
<tfoot>
<tr>
<td colspan='10' class='text-center form-actions'>
<td colspan='11' class='text-center form-actions'>
<?php
$submitText = $isEndPage ? $this->lang->save : $this->lang->file->saveAndNext;
if(!$insert and $dataInsert === '')