From b74afadb9bb746ebddb6797e64930fbf81bed649 Mon Sep 17 00:00:00 2001 From: Frank Dillon Date: Fri, 7 Sep 2007 21:39:54 +0000 Subject: [PATCH] Fixes a bug which doesn't allow User Triggers to be saved in settings --- docs/upgrades/upgrade_7.4.5-7.4.6.pl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/upgrades/upgrade_7.4.5-7.4.6.pl b/docs/upgrades/upgrade_7.4.5-7.4.6.pl index 8bfaab836..a4f7fcf83 100644 --- a/docs/upgrades/upgrade_7.4.5-7.4.6.pl +++ b/docs/upgrades/upgrade_7.4.5-7.4.6.pl @@ -21,17 +21,18 @@ my $quiet; # this line required my $session = start(); # this line required # upgrade functions go here +fixUserTriggers($session); recalculateThreadRatings($session); finish($session); # this line required -##------------------------------------------------- -#sub exampleFunction { -# my $session = shift; -# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet); -# # and here's our code -#} +#--------------------------------------------------- +sub fixUserTriggers($session) { + my $session = shift; + $session->setting->add("runOnAdminCreateUser",""); + $session->setting->add("runOnAdminUpdateUser",""); +} #---------------------------------------------------------------------------- # Have Threads recalculate their own ratings