Skip to content

Commit

Permalink
fixes #4884 disable insights visualization for dbstats plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed May 5, 2014
1 parent eb77470 commit a4b4f89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/Insights/Visualizations/Insight.php
Expand Up @@ -116,6 +116,11 @@ public static function canDisplayViewDataTable(ViewDataTable $view)
return false;
}

if ($view->requestConfig->apiMethodToRequestDataTable
&& 0 === strpos($view->requestConfig->apiMethodToRequestDataTable, 'DBStats')) {
return false;
}

return parent::canDisplayViewDataTable($view);
}
}

0 comments on commit a4b4f89

Please sign in to comment.