* Fix bug #41538.
This commit is contained in:
@@ -124,7 +124,7 @@ window.rendDocCell = function(result, {col, row})
|
||||
const docIcon = `<img src='static/svg/${docType}.svg' class='file-icon mr-1'>`;
|
||||
if(canViewDoc)
|
||||
{
|
||||
docNameHtml += `<a class="doc-name flex" href="` + $.createLink('doc', 'view', 'docID=' + row.data.id) + '">' + docIcon + ' ' + row.data.title + '</a>';
|
||||
docNameHtml += `<a class="doc-name flex" data-app="${currentTab}" href="` + $.createLink('doc', 'view', 'docID=' + row.data.id) + '">' + docIcon + ' ' + row.data.title + '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ jsVar('draftText', $lang->doc->draft);
|
||||
jsVar('canViewDoc', common::hasPriv('doc', 'view'));
|
||||
jsVar('canCollect', common::hasPriv('doc', 'collect') && $libType && $libType != 'api');
|
||||
jsVar('currentAccount', $app->user->account);
|
||||
jsVar('currentTab', $app->tab);
|
||||
|
||||
$cols = array();
|
||||
foreach($config->doc->dtable->fieldList as $colName => $col)
|
||||
|
||||
Reference in New Issue
Block a user