mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-03 15:24:09 +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);
|
||||
});
|
||||
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);
|
||||
document.location.href = url;
|
||||
};
|
||||
|
@ -79,7 +79,7 @@ class ExportController extends Controller {
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function exportSelected() {
|
||||
$targets = $this->request['t'];
|
||||
$targets = json_decode($this->request['t']);
|
||||
|
||||
$exports = '';
|
||||
foreach($targets as $backend => $addressBooks) {
|
||||
|
Loading…
Reference in New Issue
Block a user