* Fix bug #31870, and fix bug of edit execution.

This commit is contained in:
liumengyi
2023-02-02 09:04:10 +08:00
parent c628ee2b4b
commit c81a32c8ee
2 changed files with 4 additions and 2 deletions

View File

@@ -1679,12 +1679,14 @@ class execution extends control
{
global $lang;
$executionLang = $lang->execution->common;
$executionCommonLang = $lang->executionCommon;
$lang->executionCommon = $lang->execution->kanban;
$lang->execution->common = $lang->execution->kanban;
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
$lang->execution->common = $executionLang;
$lang->executionCommon = $executionCommonLang;
$lang->execution->typeList['sprint'] = $lang->execution->common;
$lang->execution->typeList['sprint'] = $executionCommonLang;
}
elseif(!empty($project) and $project->model == 'waterfall')
{

View File

@@ -593,7 +593,7 @@ class executionModel extends model
}
$relatedExecutionsID = $this->getRelatedExecutions($executionID);
$relatedExecutionsID = !empty($relatedExecutionsID) ? implode(',', array_keys($relatedExecutionsID)) : '';
$relatedExecutionsID = !empty($relatedExecutionsID) ? implode(',', array_keys($relatedExecutionsID)) : '0';
/* Update data. */
$this->lang->error->unique = $this->lang->error->repeat;