[open-ils-commits] r15065 - trunk/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Dec 3 09:52:24 EST 2009
Author: erickson
Date: 2009-12-03 09:52:22 -0500 (Thu, 03 Dec 2009)
New Revision: 15065
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
protect against nonexistent staged user
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-12-03 14:49:42 UTC (rev 15064)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-12-03 14:52:22 UTC (rev 15065)
@@ -135,6 +135,9 @@
stageUser = data.user;
patron = uEditNewPatron();
+ if(!stageUser)
+ return patron;
+
// copy the data into our new user object
for(var key in fieldmapper.IDL.fmclasses.stgu.field_map) {
if(fieldmapper.IDL.fmclasses.au.field_map[key] && !fieldmapper.IDL.fmclasses.stgu.field_map[key].virtual) {
More information about the open-ils-commits
mailing list