From 2295ee69d5928af6cc7cdaa7d129aec298728f23 Mon Sep 17 00:00:00 2001 From: mayue Date: Fri, 17 Jun 2022 14:55:25 +0800 Subject: [PATCH] * Fix bug #23868. --- module/doc/js/create.js | 2 +- module/doc/view/create.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/js/create.js b/module/doc/js/create.js index 33c07e65ee..011df5c0f7 100644 --- a/module/doc/js/create.js +++ b/module/doc/js/create.js @@ -1,6 +1,6 @@ $(function() { - toggleAcl($('[name=acl]').val(), 'doc'); + toggleAcl($('input[name="acl"]:checked').val(), 'doc'); setTimeout(function(){initPage(docType)}, 50); $('input[name="type"]').change(function() { diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 37d3a71d6a..0c72c691aa 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -109,7 +109,7 @@ $("a[href^='###']").click(function() doclib->control;?> doc->aclList, $lib->acl, "onchange='toggleAcl(this.value, \"doc\")'");?> - doc->noticeAcl['doc']['open'];?> + doc->noticeAcl['doc'][$lib->acl];?>