diff --git a/module/doc/control.php b/module/doc/control.php index 71c7bffcb7..c0e79d311b 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -158,7 +158,7 @@ class doc extends control if($type == 'execution') { $execution = $this->execution->getByID($objectID); - $this->lang->doc->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->execution); + if($execution->type == 'stage') $this->lang->doc->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->execution); if($execution->type == 'stage') $this->lang->doc->libTypeList['execution'] = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->libTypeList['execution']); }