Fixes a bug which doesn't allow User Triggers to be saved in settings
This commit is contained in:
parent
29f2018b6f
commit
b74afadb9b
1 changed files with 7 additions and 6 deletions
|
|
@ -21,17 +21,18 @@ my $quiet; # this line required
|
||||||
my $session = start(); # this line required
|
my $session = start(); # this line required
|
||||||
|
|
||||||
# upgrade functions go here
|
# upgrade functions go here
|
||||||
|
fixUserTriggers($session);
|
||||||
recalculateThreadRatings($session);
|
recalculateThreadRatings($session);
|
||||||
|
|
||||||
finish($session); # this line required
|
finish($session); # this line required
|
||||||
|
|
||||||
|
|
||||||
##-------------------------------------------------
|
#---------------------------------------------------
|
||||||
#sub exampleFunction {
|
sub fixUserTriggers($session) {
|
||||||
# my $session = shift;
|
my $session = shift;
|
||||||
# print "\tWe're doing some stuff here that you should know about.\n" unless ($quiet);
|
$session->setting->add("runOnAdminCreateUser","");
|
||||||
# # and here's our code
|
$session->setting->add("runOnAdminUpdateUser","");
|
||||||
#}
|
}
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Have Threads recalculate their own ratings
|
# Have Threads recalculate their own ratings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue