From 587200bf38346e0edf1fb997d2a28fd2c4229b2e Mon Sep 17 00:00:00 2001 From: chaideqing Date: Thu, 2 Nov 2023 06:50:48 +0000 Subject: [PATCH] * Fix bug #40117. --- module/doc/view/lefttree.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/view/lefttree.html.php b/module/doc/view/lefttree.html.php index 3aaabfc2d8..a036c66762 100644 --- a/module/doc/view/lefttree.html.php +++ b/module/doc/view/lefttree.html.php @@ -272,7 +272,7 @@ $(function() if(typeof item.hasAction == 'undefined') item.hasAction = true; if(typeof item.active == 'undefined') item.active = 0; if(typeof docID != 'undefined' && item.id == docID) item.active = 1; - if(['text', 'word', 'ppt', 'excel'].indexOf(item.type) !== -1) item.hasAction = false; + if(['text', 'word', 'ppt', 'excel', 'attachment'].indexOf(item.type) !== -1) item.hasAction = false; var objectType = config.currentModule == 'api' && ['project', 'product', 'execution'].indexOf(item.objectType) === false ? item.objectType : item.type; var libClass = ['lib', 'annex', 'api', 'execution'].indexOf(objectType) !== -1 ? 'lib' : '';