[open-ils-commits] r18274 - in trunk/Open-ILS: src/perlmods/OpenILS/Application web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Oct 11 17:42:54 EDT 2010
Author: phasefx
Date: 2010-10-11 17:42:48 -0400 (Mon, 11 Oct 2010)
New Revision: 18274
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
avoid race condition with post-save patron editor refresh and replicated databases
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2010-10-11 20:44:39 UTC (rev 18273)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm 2010-10-11 21:42:48 UTC (rev 18274)
@@ -174,6 +174,7 @@
__PACKAGE__->register_method(
method => "user_settings",
+ authoritative => 1,
api_name => "open-ils.actor.patron.settings.retrieve",
);
sub user_settings {
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-10-11 20:44:39 UTC (rev 18273)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-10-11 21:42:48 UTC (rev 18274)
@@ -384,14 +384,14 @@
/* fetch any values set for this user */
userSettings = fieldmapper.standardRequest(
- ['open-ils.actor', 'open-ils.actor.patron.settings.retrieve'],
+ ['open-ils.actor', 'open-ils.actor.patron.settings.retrieve.authoritative'],
{params : [openils.User.authtoken, userId, names]});
}
function uEditLoadUser(userId) {
var patron = fieldmapper.standardRequest(
- ['open-ils.actor', 'open-ils.actor.user.fleshed.retrieve'],
+ ['open-ils.actor', 'open-ils.actor.user.fleshed.retrieve.authoritative'],
{params : [openils.User.authtoken, userId]}
);
openils.Event.parse_and_raise(patron);
More information about the open-ils-commits
mailing list