diff --git a/CHANGELOG_DEV.md b/CHANGELOG_DEV.md index 711d834fba..4852c74c8a 100644 --- a/CHANGELOG_DEV.md +++ b/CHANGELOG_DEV.md @@ -13,4 +13,5 @@ - Enh #5598: Added `cy` Welsh language - Fix #5338: Content topic/visibility changes are re-indexed in search index - Enh #5535: Invisible users -- Enh #5747: Switch Mailer Library to `Symfony Mailer` +- Enh #5747: Switch Mailer Library to `Symfony Mailer` +- Fix #5765: Fix rendering content form on external modules diff --git a/protected/humhub/modules/content/widgets/WallCreateContentForm.php b/protected/humhub/modules/content/widgets/WallCreateContentForm.php index 5c2db7ae9a..42aa49d267 100644 --- a/protected/humhub/modules/content/widgets/WallCreateContentForm.php +++ b/protected/humhub/modules/content/widgets/WallCreateContentForm.php @@ -68,14 +68,24 @@ class WallCreateContentForm extends Widget /** * Returns the custom form implementation. * - * @param ActiveForm * @return string */ - public function renderForm(ActiveForm $form): string + public function renderForm() { return ''; } + /** + * Returns the custom form implementation. + * + * @param ActiveForm $form + * @return string + */ + public function renderActiveForm(ActiveForm $form): string + { + return $this->renderForm(); + } + /** * @inheritdoc */ diff --git a/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php b/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php index 446146d70c..882e3d797f 100644 --- a/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php +++ b/protected/humhub/modules/content/widgets/views/wallCreateContentForm.php @@ -42,7 +42,7 @@ $pickerUrl = ($contentContainer instanceof Space) ? $contentContainer->createUrl