Skip to content

Commit

Permalink
Enable colorpicker
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 22, 2017
1 parent 2895610 commit b2c3f93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ function plugin_init_openvas() {
$PLUGIN_HOOKS['use_massive_action']['openvas'] = 1;
$PLUGIN_HOOKS['config_page']['openvas'] = 'front/config.form.php';

// require spectrum (for glpi >= 9.2)
$CFG_GLPI['javascript']['tools']['pluginopenvasmenu']['PluginOpenvasConfig'] = ['colorpicker'];

if (Session::haveRight('plugin_openvas_vulnerability', READ)) {
Plugin::registerClass('PluginOpenvasRuleVulnerabilityCollection',
[ 'rulecollections_types' => true]);
Expand Down

0 comments on commit b2c3f93

Please sign in to comment.