* Adjust doc browse.

This commit is contained in:
holan20180123
2020-09-03 17:34:24 +08:00
parent d9db4ced51
commit 1111520481
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class branch extends control
$products = $this->loadModel('product')->getPairs('nocode' , $this->session->program);
$this->product->setMenu($products, $productID);
$position[] = html::a($this->createLink('product', 'browse', "productID=$productID"), $products[$productID]);
$position[] = html::a($this->createLink('product', 'browse', "productID=$productID"), zget($products, $productID));
$position[] = $this->lang->branch->manage;
$this->view->title = $this->lang->branch->manage;
+3 -3
View File
@@ -1158,10 +1158,10 @@ class docModel extends model
{
if($this->checkPrivLib($lib)) $buildGroups[$objectID][$lib->id] = $lib->name;
}
}
//if($type == 'product' and isset($hasProject[$objectID]) and common::hasPriv('doc', 'allLibs')) $buildGroups[$objectID]['project'] = $this->lang->doclib->project;
if(common::hasPriv('doc', 'showFiles')) $buildGroups[$objectID]['files'] = $this->lang->doclib->files;
//if($type == 'product' and isset($hasProject[$objectID]) and common::hasPriv('doc', 'allLibs')) $buildGroups[$objectID]['project'] = $this->lang->doclib->project;
if(common::hasPriv('doc', 'showFiles')) $buildGroups[$objectID]['files'] = $this->lang->doclib->files;
}
return $buildGroups;
}