Skip to content

Commit

Permalink
Fix rendering of attached files on new reply by PushService (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin authored Oct 12, 2024
1 parent 0466bad commit 92364ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Changelog
- Enh #417: Replace theme variables with CSS variables
- Enh #418: Update Active Form for Bootstrap 5
- Enh #422: Changed deprecated `DOMSubtreeModified` to `MutationObserver`
- Fix #423: Fix rendering of attached files on new reply by PushService

3.2.2 (July 9, 2024)
--------------------
Expand Down
2 changes: 1 addition & 1 deletion models/forms/ReplyForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function save()

if ($this->reply->save()) {
$this->reply->refresh(); // Update created_by date, otherwise db expression is set...
$this->reply->notify();
$this->reply->fileManager->attach(Yii::$app->request->post('fileList'));
$this->reply->notify();

// Update last viewed date to avoid marking the conversation as unread
$userMessage = $this->model->getUserMessage($this->reply->user_id);
Expand Down

0 comments on commit 92364ce

Please sign in to comment.