workign comments strucuture

This commit is contained in:
Mark Gregory
2026-06-17 10:29:02 +01:00
parent d1b120acf5
commit 26e428cd5f
2 changed files with 27 additions and 3 deletions
@@ -54,10 +54,10 @@ final class TicketCommentStoreController extends Controller
->where('is_active', true)
->findOrFail((int) $validated['canned_response_id']);
$body = trim($renderer->render($response->body, $ticket, $user));
$body = trim($response->body);
}
$body = $this->normaliseHtmlBody($body);
$body = $this->normaliseHtmlBody($renderer->render($body, $ticket, $user));
validator(['commentBody' => $body], [
'commentBody' => ['required', 'string', 'min:2'],