Skip to content

Commit

Permalink
Fix Call to a member function getFullName() on null in Thread.php - c…
Browse files Browse the repository at this point in the history
…loses #4438
  • Loading branch information
freescout-help-desk committed Dec 20, 2024
1 parent 18fb794 commit 5eaa427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ public function getActionText($conversation_number = '', $escape = false, $strip
}
} elseif ($this->action_type == self::ACTION_TYPE_CUSTOMER_CHANGED) {
if ($conversation_number) {
$did_this = __(':person changed the customer to :customer in conversation #:conversation_number', ['customer' => $this->customer->getFullName(true), 'conversation_number' => $conversation_number]);
$did_this = __(':person changed the customer to :customer in conversation #:conversation_number', ['customer' => ($this->customer_cached ? $this->customer_cached->getFullName(true) : ''), 'conversation_number' => $conversation_number]);
} else {
$customer_name = '';
if ($this->customer_cached) {
Expand Down

0 comments on commit 5eaa427

Please sign in to comment.