From: erickson Date: Thu, 3 Dec 2009 14:52:22 +0000 (+0000) Subject: protect against nonexistent staged user X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d7226c898cb1d63f676d15c5e3777a1fc48b5bec;p=contrib%2FConifer.git protect against nonexistent staged user git-svn-id: svn://svn.open-ils.org/ILS/trunk@15065 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index a8156f22d5..38a2e098cb 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -135,6 +135,9 @@ function uEditLoadStageUser(stageUname) { 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) {