Skip to content

Commit 935c62f

Browse files
author
Sylvain Rayé
authored
[BUGFIX] Take in account global setup to deactivate Watchdog
1 parent a8feadb commit 935c62f

File tree

1 file changed

+5
-1
lines changed
  • app/code/community/Hackathon/MageMonitoring/Helper

1 file changed

+5
-1
lines changed

app/code/community/Hackathon/MageMonitoring/Helper/Data.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,11 @@ public function getConfigKey($configKey, $widget, $scope = 'global')
573573
$id = $widget->getConfigId();
574574
}
575575
} elseif (class_implements($widget, 'Hackathon_MageMonitoring_Model_WatchDog')) {
576-
$id = $widget->getDogId();
576+
if ($scope === 'global') {
577+
$id = $widget->getId(); // class name for global params as db key
578+
} else {
579+
$id = $widget->getDogId();
580+
}
577581
} else {
578582
throw new Exception("Passed class does not implement Widget or WatchDog interface.");
579583
}

0 commit comments

Comments
 (0)