From 7fef18e95a40a93609917a585e0e22eb81c7fff1 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Fri, 29 Oct 2021 17:46:25 +0100 Subject: [PATCH] [COMPONENTS][Posting] LocaleType::class doesn't have a default attribute, replaced with 'preferred_choices' instead. --- components/Posting/Posting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Posting/Posting.php b/components/Posting/Posting.php index 22a40801d2..adef5e5f37 100644 --- a/components/Posting/Posting.php +++ b/components/Posting/Posting.php @@ -101,7 +101,7 @@ class Posting extends Component 'required' => false, 'invalid_message' => _m('Attachment not valid.'), ]], - ['language', LocaleType::class, ['label' => _m('Note language:'), 'multiple' => false, 'default' => $user->getPreferredLanguageChoice()]], + ['language', LocaleType::class, ['label' => _m('Note language:'), 'multiple' => false, 'preferred_choices' => Actor::getById($actor_id)->getPreferredLanguageChoice()]], ]; if (\count($available_content_types) > 1) {