DOES:
Cron is generating numerous email messages as follows:
PHP Notice: Use of undefined constant ITEM_PRIORITY_CHANGE - assumed 'ITEM_PRIORITY_CHANGE' in /usr/share/codendi/plugins/agiledashboard/include/agiledashboardPlugin.class.php on line 87
Notice: Use of undefined constant ITEM_PRIORITY_CHANGE - assumed 'ITEM_PRIORITY_CHANGE' in /usr/share/codendi/plugins/agiledashboard/include/agiledashboardPlugin.class.php on line 87
SHOULD:
Recent check-in suggests a syntax error in how the ITEM_PRIORITY_CHANGE hook is created. Note here:
story #7495 - Manage the perm in the planning v1
Change-Id: I9fe2bdf3028fea758fd80d0eb4c4e9c1c96cd067
file:a/plugins/agiledashboard/include/agiledashboardPlugin.class.php -> file:b/plugins/agiledashboard/include/agiledashboardPlugin.class.php
--- a/plugins/agiledashboard/include/agiledashboardPlugin.class.php
+++ b/plugins/agiledashboard/include/agiledashboardPlugin.class.php
@@ -84,6 +84,7 @@ class AgileDashboardPlugin extends Plugi
$this->addHook(Event::REST_PATCH_PROJECT_BACKLOG);
$this->addHook(Event::REST_OPTIONS_PROJECT_BACKLOG);
$this->addHook(Event::GET_PROJECTID_FROM_URL);
+ $this->addHook(ITEM_PRIORITY_CHANGE);
}
if (defined('CARDWALL_BASE_URL')) {
@@ -786,6 +787,37 @@ class AgileDashboardPlugin extends Plugi
);
}
My suspicion is that $this->addHook(ITEM_PRIORITY_CHANGE) should be called as $this->addHook(Event::ITEM_PRIORITY_CHANGE)... note the namespace addition (Event::).