Skip to content

Commit

Permalink
[BUGFIX] Take in account global setup to deactivate Watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain Rayé authored Feb 27, 2018
1 parent a8feadb commit 935c62f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/code/community/Hackathon/MageMonitoring/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,11 @@ public function getConfigKey($configKey, $widget, $scope = 'global')
$id = $widget->getConfigId();
}
} elseif (class_implements($widget, 'Hackathon_MageMonitoring_Model_WatchDog')) {
$id = $widget->getDogId();
if ($scope === 'global') {
$id = $widget->getId(); // class name for global params as db key
} else {
$id = $widget->getDogId();
}
} else {
throw new Exception("Passed class does not implement Widget or WatchDog interface.");
}
Expand Down

0 comments on commit 935c62f

Please sign in to comment.