From 35aa1b78c8c7085a43be556753c6e045d01ce302 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Fri, 29 Apr 2016 08:00:07 -0700 Subject: [PATCH] fix when multiple syndication are checked --- views/new-post.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/views/new-post.php b/views/new-post.php index 57b7521..a059ea0 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -213,7 +213,9 @@ $(function(){ } } if(syndications.length > 0) { - formData.append("syndicate-to", syndications); + for(var i in syndications) { + formData.append("syndicate-to[]", syndications[i]); + } } if(v=$("#note_slug").val()) { formData.append("slug", v);