mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-11 22:24:32 +01:00
Fix export of contacts
This commit is contained in:
parent
78460dd17d
commit
822f4f1083
@ -1175,7 +1175,8 @@ OC.notify = function(params) {
|
|||||||
}
|
}
|
||||||
targets[contact.backend][contact.addressBookId].push(contact.contactId);
|
targets[contact.backend][contact.addressBookId].push(contact.contactId);
|
||||||
});
|
});
|
||||||
var url = OC.generateUrl('apps/contacts/exportSelected', {t:targets});
|
targets = JSON.stringify(targets);
|
||||||
|
var url = OC.generateUrl('apps/contacts/exportSelected?t={t}', {t:targets});
|
||||||
//console.log('export url', url);
|
//console.log('export url', url);
|
||||||
document.location.href = url;
|
document.location.href = url;
|
||||||
};
|
};
|
||||||
|
@ -79,7 +79,7 @@ class ExportController extends Controller {
|
|||||||
* @NoCSRFRequired
|
* @NoCSRFRequired
|
||||||
*/
|
*/
|
||||||
public function exportSelected() {
|
public function exportSelected() {
|
||||||
$targets = $this->request['t'];
|
$targets = json_decode($this->request['t']);
|
||||||
|
|
||||||
$exports = '';
|
$exports = '';
|
||||||
foreach($targets as $backend => $addressBooks) {
|
foreach($targets as $backend => $addressBooks) {
|
||||||
|
Loading…
Reference in New Issue
Block a user