From 2f69054132a0a63f0f2a5ef0e952ab17d2824636 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 8 Feb 2010 15:50:09 -0800 Subject: [PATCH] Fix a number typo in the Cache cleanup workflow activities. Fixes bug #11396. --- docs/changelog/7.x.x.txt | 1 + docs/upgrades/upgrade_7.8.11-7.8.12.pl | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 3db35f665..f16f11064 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ - fixed #11381: Captcha of DataForm cached - fixed #11392: account.message var sometimes returns invalid html - fixed #11395: i18n LDAP field name in user properties wrong + - fixed #11396: WebGUI Workflow Cache Error. 7.8.11 - fixed #11362: Unable to checkout with ITransact plugin diff --git a/docs/upgrades/upgrade_7.8.11-7.8.12.pl b/docs/upgrades/upgrade_7.8.11-7.8.12.pl index 5fc7d60a5..2127112fd 100644 --- a/docs/upgrades/upgrade_7.8.11-7.8.12.pl +++ b/docs/upgrades/upgrade_7.8.11-7.8.12.pl @@ -31,6 +31,7 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here +fixWorkflowSizeLimits($session); finish($session); # this line required @@ -45,6 +46,20 @@ finish($session); # this line required #} +#---------------------------------------------------------------------------- +# Describe what our function does +sub fixWorkflowSizeLimits { + my $session = shift; + print "\tAdjust size limits on File and Database cache cleanups... " unless $quiet; + ACTIVITY: foreach my $workflowActivityId (qw{pbwfactivity0000000002 pbwfactivity0000000022}) { + my $activity = WebGUI::Workflow::Activity->new($session, $workflowActivityId); + next ACTIVITY unless $activity; + next ACTIVITY unless $activity->get('sizeLimit') == 1_000_000_000; + $activity->set('sizeLimit', 100_000_000); + } + print "DONE!\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE -------------------------------- #----------------------------------------------------------------------------