Fixed ExpireSubcriptionCode workflow activity to use the new system.
Added code to remove the ProcessRecurringPayments workflow activity from the config file.
This commit is contained in:
parent
7bdf22e412
commit
156252af6e
2 changed files with 25 additions and 2 deletions
|
|
@ -66,6 +66,7 @@ addDBLinkAccessToSQLMacro($session);
|
|||
addAssetManager( $session );
|
||||
removeSqlForm($session);
|
||||
migratePaymentPlugins( $session );
|
||||
removeRecurringPaymentActivity( $session );
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -1440,6 +1441,21 @@ sub migratePaymentPlugins {
|
|||
print "Done\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub removeRecurringPaymentActivity {
|
||||
my $session = shift;
|
||||
print "\tRemoving the recurring payment workflow activity...";
|
||||
|
||||
my $activities = $session->config->get( 'workflowActivities' );
|
||||
|
||||
my $none = $activities->{ None };
|
||||
$activities->{ None } = [ grep { !/^WebGUI::Workflow::Activity::ProcessRecurringPayments$/ } @{ $none } ];
|
||||
|
||||
$session->config->set( 'workflowActivities', $activities );
|
||||
|
||||
print "Done.\n";
|
||||
}
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue