mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +01:00
Fix export of contacts
This commit is contained in:
parent
ee1e61535e
commit
7945f1fcc8
@ -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…
x
Reference in New Issue
Block a user