* Modify language item.

This commit is contained in:
tianshujie
2022-03-22 12:35:34 +08:00
parent acd514e738
commit 1004f727ae
3 changed files with 7 additions and 12 deletions
+3 -2
View File
@@ -1057,15 +1057,16 @@ class bugModel extends model
if(empty($bug->buildName)) dao::$errors['buildName'][] = sprintf($this->lang->error->notempty, $this->lang->bug->placeholder->newBuildName);
if(empty($bug->buildExecution))
{
$executionField = $this->lang->bug->execution;
if($oldBug->execution)
{
$execution = $this->loadModel('execution')->getByID($oldBug->execution);
if($execution->type == 'kanban' and $this->app->tab == 'execution')
{
$this->lang->bug->execution = str_replace($this->lang->execution->common, $this->lang->execution->kanban, $this->lang->bug->execution);
$executionField = $this->lang->bug->kanban;
}
}
dao::$errors['buildExecution'][] = sprintf($this->lang->error->notempty, $this->lang->bug->execution);
dao::$errors['buildExecution'][] = sprintf($this->lang->error->notempty, $executionField);
}
if(dao::isError()) return false;