Skip to content

Commit

Permalink
fix: language param not passed when anylang disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Jan 22, 2024
1 parent 3e5f8b7 commit 3ffcd51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/src/forum/extendSubscriptionModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ export default function extendSubscriptionModal() {

extend(components.SubscriptionModal.prototype, 'oninit', function () {
const tag = this.attrs.model;
const subscriptionLanguage = tag.subscriptionLanguage();
let subscriptionLanguage = tag.subscriptionLanguage();

if (!app.forum.attribute('fof-discussion-language.showAnyLangOpt') && subscriptionLanguage === null) {
subscriptionLanguage = app.translator.getLocale();
}

this.language = Stream(subscriptionLanguage);
});

Expand Down

0 comments on commit 3ffcd51

Please sign in to comment.