* Adjust doc browse.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user