Skip to content

Commit

Permalink
Ensured that alma parton cache is refreshed on save
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed Jun 25, 2014
1 parent 5d34657 commit dbbe684
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions alma.module
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit dbbe684

Please sign in to comment.