Fix a number typo in the Cache cleanup workflow activities. Fixes bug #11396.

This commit is contained in:
Colin Kuskie 2010-02-08 15:50:09 -08:00
parent f24963bbfe
commit 2f69054132
2 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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 --------------------------------
#----------------------------------------------------------------------------