* [bug#55066,done,0.2h] get typeID.
This commit is contained in:
@@ -23,7 +23,13 @@ foreach($config->doc->dtable->fieldList as $colName => $col)
|
||||
$params = "objectID={$objectID}&libID={$libID}&moduleID={$moduleID}&browseType={$browseType}&orderBy={$orderBy}¶m={$param}&recTotal={recTotal}&recPerPage={recPerPage}&pageID={page}";
|
||||
$tableData = empty($docs) ? array() : initTableData($docs, $cols);
|
||||
$createDocLink = '';
|
||||
if($browseType != 'bysearch' && $libID && common::hasPriv('doc', 'create')) $createDocLink = createLink('doc', 'create', "objectType={$lib->type}&objectID={$lib->objectID}&libID={$lib->id}&moduleID={$moduleID}&type=html");
|
||||
$typeID = empty($lib) ? $objectID : zget($lib, (string)$lib->type, 0);
|
||||
if($lib->type == 'custom')
|
||||
{
|
||||
$typeID = $lib->parent > 0 ? $lib->parent : $lib->id;
|
||||
if($lib->parent == 0) $libID = $docModel->dao->select('*')->from(TABLE_DOCLIB)->where('parent')->eq($typeID)->andWhere('deleted')->eq('0')->orderBy('id_asc')->limit(1)->fetch('id');
|
||||
}
|
||||
if($browseType != 'bysearch' && $libID && common::hasPriv('doc', 'create')) $createDocLink = createLink('doc', 'create', "objectType={$lib->type}&objectID={$typeID}&libID={$lib->id}&moduleID={$moduleID}&type=html");
|
||||
$docContent = dtable(
|
||||
setID('docTable'),
|
||||
set::iconList($config->doc->iconList),
|
||||
|
||||
Reference in New Issue
Block a user