* Fix bug.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user