Browse Source

fix missing registration variable bug

bradfordcondon 5 years ago
parent
commit
538a3aef03
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal/includes/tripal.registration.inc

+ 2 - 2
tripal/includes/tripal.registration.inc

@@ -337,6 +337,8 @@ function tripal_registration_form_submit($form, &$form_state) {
   // Now send the updated info to the Tripal Site.
   // Only register with tripal.info if the user has not opt'd out.
   if ($form_state['values']['disable_tripal_reporting'] == FALSE) {
+
+    $registration = variable_get('tripal_site_registration');
     tripal_registration_remote_submit($registration);
     drupal_set_message(t('Registration sent to tripal.info'), 'status');
     drupal_set_message(t('Thank you for registering. You can update your details at any time.'), 'status');
@@ -346,8 +348,6 @@ function tripal_registration_form_submit($form, &$form_state) {
             change this at any time by unchecking the opt out checkbox and
             submitting the form.'), 'status');
   }
-
-
 }
 
 function tripal_registration_remote_submit($data) {