Avoid server side exception by only looking for user IDs that are numeric

This commit is contained in:
Nathan Gray 2016-03-14 21:51:58 +00:00
parent 9b70d4bb50
commit f9fd54dd7d

View File

@ -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(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 // Add it in
var name = this.egw().link_title('home-accounts', search[j]); var name = this.egw().link_title('home-accounts', search[j]);