diff --git a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js index 64382451b..ce7fd72c9 100644 --- a/openid-connect-server-webapp/src/main/webapp/resources/js/client.js +++ b/openid-connect-server-webapp/src/main/webapp/resources/js/client.js @@ -801,11 +801,11 @@ var ClientFormView = Backbone.View.extend({ $('.control-group').removeClass('error'); // build the scope object + var scopes = this.scopeCollection.pluck("item"); var extraScope = $('#scope input').val(); if (extraScope) { - this.scopeCollection.add(new ListWidgetItem(extraScope)); + scopes.push(extraScope); } - var scopes = this.scopeCollection.pluck("item"); // build the grant type object var grantTypes = [];