Cast groups as string, fixes bug oc-1309. Thanks to nderambure.

This commit is contained in:
Michael Gapczynski 2012-07-26 23:54:25 -04:00
parent ea2e76eecc
commit 7050f0fa67

View file

@ -87,7 +87,7 @@ $(document).ready(function(){
var user=element.data('username');
if($(element).attr('class') == 'groupsselect'){
if(element.data('userGroups')){
checked=element.data('userGroups').split(', ');
checked=String(element.data('userGroups')).split(', ');
}
if(user){
var checkHandeler=function(group){