[open-ils-commits] r12571 - trunk/Open-ILS/web/js/dojo/openils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 18 08:51:49 EDT 2009
Author: erickson
Date: 2009-03-18 08:51:48 -0400 (Wed, 18 Mar 2009)
New Revision: 12571
Modified:
trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
this.user might be an event, check for that
Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js 2009-03-18 05:51:38 UTC (rev 12570)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js 2009-03-18 12:51:48 UTC (rev 12571)
@@ -54,7 +54,7 @@
else if (this.authtoken) this.getBySession();
else if (kwargs.login) this.login();
- var id = this.id || (this.user) ? this.user.id() : null;
+ var id = this.id || (this.user && this.user.id) ? this.user.id() : null;
if(id && !this.permOrgCache[id])
this.permOrgCache[id] = {};
},
More information about the open-ils-commits
mailing list