diff --git a/module/bug/ui/view.html.php b/module/bug/ui/view.html.php index d82c692c75..e1ff9de470 100644 --- a/module/bug/ui/view.html.php +++ b/module/bug/ui/view.html.php @@ -59,7 +59,7 @@ if(!$bug->deleted) continue; } - if(empty($project->hasProduct) && isset($action['id']) && $action['id'] == 'toStory') + if(!empty($project) && empty($project->hasProduct) && isset($action['id']) && $action['id'] == 'toStory') { $action['data-app'] = $app->tab == 'execution' ? 'execution' : 'project'; $action['data-tab'] = $app->tab == 'execution' ? 'execution' : 'project';