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. *