diff --git a/assets/js/components/posts/form.js b/assets/js/components/posts/form.js index f7de2b67..11dda2f2 100644 --- a/assets/js/components/posts/form.js +++ b/assets/js/components/posts/form.js @@ -440,6 +440,13 @@ ComunicWeb.components.posts.form = { ComunicWeb.common.notificationSystem.showNotification("Please check you have chosen a post type !", "danger"); return; } + + //Get the visibility level + var visibilityLevel = visibility_choices_contener.querySelector("input:checked").value; + datas.append("visibility", visibilityLevel); + + //Try to perform the request + } },