From 58b7c028f3a9889f10702a0f94a2247c2783f514 Mon Sep 17 00:00:00 2001 From: Helmi Akermi <70575401+hakermi@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:38:59 +0100 Subject: [PATCH] fix: Unable to publish on audience All - EXO-75814 - Meeds-io/MIPs#161 (#339) Prior to this change, when publish an article on audience value a legacy check and value parsing causes an issue in the saved value to be always users. This PR ensures to set the right value sent from the new publication drawer while saving the article to fix the issue. --- .../news-activity-composer-app/components/ContentRichEditor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-webapp/src/main/webapp/vue-app/news-activity-composer-app/components/ContentRichEditor.vue b/content-webapp/src/main/webapp/vue-app/news-activity-composer-app/components/ContentRichEditor.vue index 5d747d34f..3e741651c 100644 --- a/content-webapp/src/main/webapp/vue-app/news-activity-composer-app/components/ContentRichEditor.vue +++ b/content-webapp/src/main/webapp/vue-app/news-activity-composer-app/components/ContentRichEditor.vue @@ -477,7 +477,7 @@ export default { this.article.published = publish; this.article.targets = selectedTargets; if (selectedAudience !== null) { - this.article.audience = selectedAudience === this.$t('news.composer.stepper.audienceSection.allUsers') ? 'all' : 'space'; + this.article.audience = selectedAudience; } this.doPostArticle(schedulePostDate); },