Merge branch 'main' of https://gitfox.zcorp.cc/git/zentao/zentaopms into main
This commit is contained in:
@@ -31,7 +31,8 @@ class batchEditBranchTester extends tester
|
||||
if ($form->dom->allTab === false)
|
||||
{
|
||||
$nameTip = $form->dom->$tipDom->getText();
|
||||
$nameEmptyTip = sprintf($this->lang->error->notempty, $this->lang->branch->name);
|
||||
$branchName = sprintf($this->lang->branch->name, $this->lang->branch->common);
|
||||
$nameEmptyTip = sprintf($this->lang->error->notempty, $branchName);
|
||||
if ($nameTip === $nameEmptyTip) return $this->success('分支名称必填提示信息正确');
|
||||
if ($editBranch->name != '' && $form->dom->$tipDom)
|
||||
{
|
||||
|
||||
@@ -23,10 +23,12 @@ class createBranchTester extends tester
|
||||
$form->wait(2);
|
||||
if ($form->dom->createBranchForm)
|
||||
{
|
||||
if ($this->checkFormTips('branch')) return $this->success('分支名称必填提示信息正确');
|
||||
$nameTip = $form->dom->nameTip->getText();
|
||||
$branchName = sprintf($this->lang->branch->name, $this->lang->branch->common);
|
||||
$nameEmptyTip = sprintf($this->lang->error->notempty, $branchName);
|
||||
if ($nameTip == $nameEmptyTip) return $this->success('分支名称必填提示信息正确');
|
||||
if ($branch->name != '' && $form->dom->nameTip)
|
||||
{
|
||||
//分支已存在
|
||||
$nameTip = str_replace('@branch@', $this->lang->branch->common, $this->lang->branch->existName);
|
||||
return ($form->dom->nameTip->getText() == $nameTip)
|
||||
? $this->success('分支已存在提示信息正确')
|
||||
|
||||
@@ -23,8 +23,11 @@ class editBranchTester extends tester
|
||||
$form->wait(2);
|
||||
if ($form->dom->zin_branch_edit_1_form)
|
||||
{
|
||||
if ($this->checkFormTips('branch')) return $this->success('分支名称必填提示信息正确');
|
||||
if (isset($editBranch->name) && ($form->dom->nameTip))
|
||||
$nameTip = $form->dom->nameTip->getText();
|
||||
$branchName = sprintf($this->lang->branch->name, $this->lang->branch->common);
|
||||
$nameEmptyTip = sprintf($this->lang->error->notempty, $branchName);
|
||||
if ($nameTip == $nameEmptyTip) return $this->success('分支名称必填提示信息正确');
|
||||
if ($editBranch->name != '' && $form->dom->nameTip)
|
||||
{
|
||||
//分支已存在
|
||||
$nameTip = str_replace('@branch@', $this->lang->branch->common, $this->lang->branch->existName);
|
||||
|
||||
Reference in New Issue
Block a user