From 0103cba3264beeb749058cf579c2354b2b666bc5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 16 Nov 2009 22:19:53 -0800 Subject: [PATCH] Disable the Send Stats workflow, to avoid confusion. Fixes bug #11245 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Operation/Statistics.pm | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 85844b2b5..63da32376 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -21,6 +21,7 @@ - added file globbing to preload.exclude - fixed #11242: Macros not executing in Download Templates - added TimeZone form controls accepts spaces or underscores in zone names. + - fixed #11245: send stats 7.8.4 - Fixed a compatibility problem between WRE and new Spectre code. diff --git a/lib/WebGUI/Operation/Statistics.pm b/lib/WebGUI/Operation/Statistics.pm index fe2713536..0a9fbef38 100644 --- a/lib/WebGUI/Operation/Statistics.pm +++ b/lib/WebGUI/Operation/Statistics.pm @@ -94,6 +94,8 @@ sub www_disableSendWebguiStats { return $session->privilege->adminOnly() unless canView($session); my $task = WebGUI::Workflow::Cron->new($session, 'send_webgui_statistics'); $task->delete; + my $workflow = WebGUI::Workflow->new($session, 'send_webgui_statistics'); + $workflow->set({enabled => 0}); return www_viewStatistics($session); } @@ -123,6 +125,8 @@ sub www_enableSendWebguiStats { priority => 3, title => 'Send WebGUI Statistics', }, 'send_webgui_statistics'); + my $workflow = WebGUI::Workflow->new($session, 'send_webgui_statistics'); + $workflow->set({enabled => 1}); return www_viewStatistics($session); }