1
0
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:
Jan ten Bokkel 2014-08-29 17:52:51 +02:00
parent 78460dd17d
commit 822f4f1083
2 changed files with 3 additions and 2 deletions

View File

@ -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;
};

View File

@ -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) {