Skip to content
Snippets Groups Projects

fix the issue

Closed Abhishek Gupta requested to merge issue/agreement-3416657:3416657-wrong-order-of into 3.0.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -28,7 +28,7 @@ function agreement_user_update(EntityInterface $account) {
isset($account->original) &&
$account->checkExistingPassword($account->original) &&
$current_user->id() === $account->id()) {
\Drupal::service('agreement.handler')->agree($account, $agreement, 2);
\Drupal::service('agreement.handler')->agree($agreement, $account, 2);
}
}
}
Loading