From f9fd54dd7dcf86ad6b0119e5f47da820a52e0726 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 14 Mar 2016 21:51:58 +0000 Subject: [PATCH] Avoid server side exception by only looking for user IDs that are numeric --- etemplate/js/et2_widget_selectAccount.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_selectAccount.js b/etemplate/js/et2_widget_selectAccount.js index 5b1abfb114..da51c6528e 100644 --- a/etemplate/js/et2_widget_selectAccount.js +++ b/etemplate/js/et2_widget_selectAccount.js @@ -263,7 +263,8 @@ var et2_selectAccount = (function(){ "use strict"; return et2_selectbox.extend( } if(this.options.select_options[i].value == search[j]) found = true; } - if(!found) + // We only look for numeric IDs, non-numeric IDs cause an exception + if(!found && !isNaN(search[j])) { // Add it in var name = this.egw().link_title('home-accounts', search[j]);