[open-ils-commits] r18275 - in branches/rel_2_0/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:43:32 EDT 2010


Author: phasefx
Date: 2010-10-11 17:43:26 -0400 (Mon, 11 Oct 2010)
New Revision: 18275

Modified:
   branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
   branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
avoid race condition with post-save patron editor refresh and replicated databases

Modified: branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm
===================================================================
--- branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2010-10-11 21:42:48 UTC (rev 18274)
+++ branches/rel_2_0/Open-ILS/src/perlmods/OpenILS/Application/Actor.pm	2010-10-11 21:43:26 UTC (rev 18275)
@@ -174,6 +174,7 @@
 
 __PACKAGE__->register_method(
     method   => "user_settings",
+    authoritative => 1,
     api_name => "open-ils.actor.patron.settings.retrieve",
 );
 sub user_settings {

Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js	2010-10-11 21:42:48 UTC (rev 18274)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js	2010-10-11 21:43:26 UTC (rev 18275)
@@ -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