From b67d8aea5fa237d9aee6eaa02119bdac210cdd96 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 14 Feb 2025 15:31:59 +0800 Subject: [PATCH] * [bug#59684] Change editDocTemplate to editTemlate. --- module/doc/ui/templatelist.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/ui/templatelist.html.php b/module/doc/ui/templatelist.html.php index df6e925553..bf5fa7a430 100644 --- a/module/doc/ui/templatelist.html.php +++ b/module/doc/ui/templatelist.html.php @@ -27,7 +27,7 @@ $privs['deleteModule'] = hasPriv('doc', 'deleteTemplateType'); $privs['collect'] = 'no'; $filterTypes = $lang->docTemplate->filterTypes; -if(!hasPriv('doc', 'editDocTemplate')) $filterTypes = array_values(array_filter($filterTypes, function($item){ return $item[0] != 'draft'; })); +if(!hasPriv('doc', 'editTemplate')) $filterTypes = array_values(array_filter($filterTypes, function($item){ return $item[0] != 'draft'; })); $tableCols = array(); $tableCols['id'] = $lang->docTemplate->id;