(js) Fix loading of card from global addressbooks

pull/213/head
Francis Lachapelle 2016-06-06 10:32:45 -04:00
parent 5983c5cf4d
commit 2a053400d7
3 changed files with 3 additions and 1 deletions

1
NEWS
View File

@ -6,6 +6,7 @@ Bug fixes
- [web] fixed user removal from ACLs in Administration module (#3713)
- [web] fixed event classification icon (private/confidential) in month view (#3711)
- [web] CKEditor: added the pastefromword plugin (#2295, #3313)
- [web] fixed loading of card from global addressbooks
3.1.1 (2016-06-02)
------------------

View File

@ -702,6 +702,7 @@
_this.$cards = [];
angular.forEach(response.headers, function(data) {
var o = _.zipObject(headers, data);
angular.extend(o, { pid: _this.id });
_this.$cards.push(new AddressBook.$Card(o));
});
}

View File

@ -30,7 +30,7 @@
vm.mode = { search: false, multiple: 0 };
function selectCard(card) {
$state.go('app.addressbook.card.view', {addressbookId: stateAddressbook.id, cardId: card.id});
$state.go('app.addressbook.card.view', {cardId: card.id});
}
function toggleCardSelection($event, card) {