File tree 1 file changed +3
-2
lines changed
plugins/cc-global-network/cron
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ function ccgn_check_accounts_to_be_removed()
43
43
{
44
44
$ states_to_delete = array (
45
45
CCGN_APPLICATION_STATE_DELETE ,
46
- CCGN_APPLICATION_STATE_DIDNT_UPDATE_VOUCHERS
46
+ CCGN_APPLICATION_STATE_DIDNT_UPDATE_VOUCHERS ,
47
+ CCGN_APPLICATION_STATE_CHARTER ,
48
+ CCGN_APPLICATION_STATE_DETAILS
47
49
);
48
50
$ now = new DateTime ('now ' );
49
51
foreach ($ states_to_delete as $ state ) {
@@ -53,7 +55,6 @@ function ccgn_check_accounts_to_be_removed()
53
55
$ state_date = new DateTime ($ status_date );
54
56
$ days_in_state = $ state_date ->diff ($ now )->days ;
55
57
if ($ days_in_state > CCGN_REMOVE_APPLICATION_AFTER_DAYS ) {
56
- // Maybe it's a good Idea to log the application that have been deleted (just the name, according to date retention)
57
58
ccgn_close_and_remove_retention_data_applicant ($ applicant_id );
58
59
}
59
60
}
You can’t perform that action at this time.
0 commit comments