diff --git a/module/doc/control.php b/module/doc/control.php index 0fbd50de1d..42b8f31e70 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -182,7 +182,7 @@ class doc extends control $executionPairs[$id] = $executionPrefix . $execution->name; } } - if($type == 'executions') $objects = $executionPairs; + if($type == 'execution') $objects = $executionPairs; } if($type == 'execution') @@ -248,7 +248,8 @@ class doc extends control } $lib = $this->doc->getLibByID($libID); - if(!empty($lib->product)) $this->view->product = $this->dao->select('id,name')->from(TABLE_PRODUCT)->where('id')->eq($lib->product)->fetch(); + if(!empty($lib->product)) $this->view->object = $this->product->getByID($lib->product); + if(!empty($lib->project) and empty($lib->execution)) $this->view->object = $this->project->getById($lib->project); if(!empty($lib->execution)) { $execution = $this->execution->getByID($lib->execution); @@ -263,7 +264,7 @@ class doc extends control $this->lang->doc->execution = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->doc->execution); } - $this->view->execution = $execution; + $this->view->object = $execution; } if($lib->type == 'custom') unset($this->lang->doclib->aclList['default']); diff --git a/module/doc/view/editlib.html.php b/module/doc/view/editlib.html.php index 289003caa7..06bb7aebfb 100644 --- a/module/doc/view/editlib.html.php +++ b/module/doc/view/editlib.html.php @@ -28,16 +28,10 @@