Skip to content

Commit

Permalink
(js) Fix autocompletion of LDAP-based groups
Browse files Browse the repository at this point in the history
Fixes #3673
  • Loading branch information
cgx committed Jun 16, 2016
1 parent 429aa1a commit af136ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion UI/WebServerResources/js/Contacts/AddressBook.service.js
Expand Up @@ -122,7 +122,9 @@
// Add new cards matching the search query
_.forEach(results, function(data, index) {
if (_.isUndefined(_.find(AddressBook.$cards, _.bind(compareIds, data)))) {
var card = new AddressBook.$Card(data, search);
var card = new AddressBook.$Card(_.mapKeys(data, function(value, key) {
return key.toLowerCase();
}), search);
AddressBook.$cards.splice(index, 0, card);
}
});
Expand Down
2 changes: 1 addition & 1 deletion UI/WebServerResources/js/Scheduler/Component.service.js
Expand Up @@ -832,7 +832,7 @@
Component.prototype.addAttendee = function(card) {
var _this = this, attendee, list, url, params;
if (card) {
if (card.$isList() && card.isGroup !== 1) {
if (card.$isList({expandable: true})) {
// Decompose list members
list = Component.$Card.$find(card.container, card.c_name);
list.$id().then(function(listId) {
Expand Down

0 comments on commit af136ee

Please sign in to comment.