Skip to content

Commit 75fd041

Browse files
committed
update details management status on update details on institutions
1 parent 5af3e03 commit 75fd041

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/cc-global-network/public/registration-institution-form-shortcode.php

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ function ccgn_registration_institution_form_submit_handler ( $entry,
4444
);
4545
break;
4646
case CCGN_GF_INSTITUTION_DETAILS:
47+
$user_state = ccgn_registration_user_get_stage( $entry['created_by'] );
48+
if ( $user_state == CCGN_APPLICATION_STATE_UPDATE_DETAILS ) {
49+
$status = get_user_meta( $entry['created_by'], 'ccgn_applicant_update_details_state', true );
50+
$state['state'] = 'updated';
51+
$state['updated'] = 1;
52+
$state['date'] = date('Y-m-d H:i:s', strtotime('now'));
53+
update_user_meta( $entry['created_by'], 'ccgn_applicant_update_details_state', $status );
54+
}
4755
ccgn_registration_current_user_set_stage (
4856
CCGN_APPLICATION_STATE_RECEIVED
4957
);

0 commit comments

Comments
 (0)