Skip to content

Commit

Permalink
Fix presave invoke error
Browse files Browse the repository at this point in the history
  • Loading branch information
docwilmot committed Jul 25, 2019
1 parent f28d155 commit aee04c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions profile.module
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ function profile_type_save($type) {
// Allow modules to act on profile data before saving.
foreach (module_implements('profile_presave') as $module) {
$function = $module . '_profile_presave';
$function($this->name, $data);
$function($type->name, $data);
}

config('profile.type.' . $data['type'])
Expand Down Expand Up @@ -595,7 +595,6 @@ function profile_form_user_register_form_alter(&$form, &$form_state) {
}
}

debug($form_state['profiles']);
// If we have profiles to attach to the registration form - then do it.
if (!empty($form_state['profiles'])) {
profile_attach_form($form, $form_state);
Expand Down

0 comments on commit aee04c2

Please sign in to comment.