client scopes now added appropriately

pull/873/head
Justin Richer 2014-11-13 13:15:11 -10:00
parent 51b477679a
commit 57648cd9d5
1 changed files with 2 additions and 2 deletions

View File

@ -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 = [];