diff --git a/alma.module b/alma.module index 4f6ae8e..d4dccde 100644 --- a/alma.module +++ b/alma.module @@ -162,6 +162,9 @@ function alma_client() { * @param string $method * The desired method. * + * @throws Exception + * Provider exception if communication fails. + * * @return array * NULL on error, or the result of the method call. */ @@ -569,6 +572,11 @@ function alma_update_provider($changes, $entity) { user_save($user); } } + + // Update patron information and update cache. + if (!empty($changes)) { + alma_get_patron($creds, TRUE); + } } /**