From 7654f9772e0f6f2f36e95b5c19aad7f89d6eef4b Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 14 Aug 2024 09:31:25 +0800 Subject: [PATCH] * [refac bug #53685] check execution. --- module/doc/js/common.ui.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/doc/js/common.ui.js b/module/doc/js/common.ui.js index 60e755dd08..02be702557 100644 --- a/module/doc/js/common.ui.js +++ b/module/doc/js/common.ui.js @@ -312,11 +312,11 @@ window.checkObjectPriv = function(e) if($object.length > 0) objectID = $object.val(); if(libType == 'project') { - let $extension = $('[name=execution]'); - if($extension.length > 0 && $extension.val()) + let $execution = $('[name=execution]'); + if($execution.length > 0 && parseInt($execution.val()) > 0) { objectType = 'execution'; - objectID = $extension.val(); + objectID = $execution.val(); } } if(objectID == 0) return;