[eGroupWare-svn] r55976 - /trunk/calendar/js/et2_widget_planner.js

[email protected] Mon, 02 May 2016 15:17:20 -0000
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: nathangray
Date: Mon May  2 17:17:20 2016
New Revision: 55976

URL: http://svn.stylite.de/viewvc/egroupware?rev=55976&view=rev
Log:
Avoid undefined labels breaking the sort

Modified:
    trunk/calendar/js/et2_widget_planner.js

Modified: trunk/calendar/js/et2_widget_planner.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/js/et2_widget_planner.js?rev=55976&r1=55975&r2=55976&view=diff
==============================================================================
--- trunk/calendar/js/et2_widget_planner.js (original)
+++ trunk/calendar/js/et2_widget_planner.js Mon May  2 17:17:20 2016
@@ -341,7 +341,7 @@
 							{
 								if(already_added.indexOf(''+id) < 0)
 								{
-									this.push({id: id, label: result[id], data: {participants:id,owner:id}});
+									this.push({id: id, label: result[id]||'', data: {participants:id,owner:id}});
 									already_added.push(''+id);
 								}
 							}
@@ -349,7 +349,7 @@
 					}
 					else	// users
 					{
-						var label = this._get_owner_name(user);
+						var label = this._get_owner_name(user)||'';
 						if(already_added.indexOf(user) < 0)
 						{
 							labels.push({id: user, label: label, data: {participants:user,owner:''}});


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z