From 7eb8983e96e34e34b9431c273e6d78bf0660a5d3 Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Thu, 24 Nov 2022 03:21:12 +0000 Subject: [PATCH] * Fix bug. --- module/build/model.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/module/build/model.php b/module/build/model.php index ec06a83070..4834dc63c3 100644 --- a/module/build/model.php +++ b/module/build/model.php @@ -608,6 +608,24 @@ class buildModel extends model return $build; } + /** + * Adjust the action is clickable. + * + * @param string $bug + * @param string $action + * @param string $module + * @access public + * @return void + */ + public static function isClickable($object, $action, $module = 'bug') + { + $action = strtolower($action); + + if($module == 'testtask' && $action == 'create') return !!$object->execution; + + return true; + } + /** * Build action menu. *