* Fix bug.

This commit is contained in:
wangyuting
2022-11-24 03:21:12 +00:00
parent 307629f078
commit 7eb8983e96
+18
View File
@@ -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.
*