Skip to content

Commit f3d4b65

Browse files
committed
add incompleted application status
1 parent 53f1376 commit f3d4b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/cc-global-network/cron/remove-marked-users.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ function ccgn_check_accounts_to_be_removed()
4343
{
4444
$states_to_delete = array(
4545
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
4749
);
4850
$now = new DateTime('now');
4951
foreach ($states_to_delete as $state) {
@@ -53,7 +55,6 @@ function ccgn_check_accounts_to_be_removed()
5355
$state_date = new DateTime($status_date);
5456
$days_in_state = $state_date->diff($now)->days;
5557
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)
5758
ccgn_close_and_remove_retention_data_applicant($applicant_id);
5859
}
5960
}

0 commit comments

Comments
 (0)