Skip to content

Commit 66fbece

Browse files
committed
show completetx comments as replies
1 parent 7939bda commit 66fbece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Models/Comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function attachments()
7878
public function scopeForLevel($query, $level)
7979
{
8080
// User level
81-
if ($level < 2) return $query->whereIN('type', ['reply','complete','reopen']);
81+
if ($level < 2) return $query->whereIN('type', ['reply', 'complete', 'completetx', 'reopen']);
8282

8383
// For agent or admin
8484
return $query;
@@ -89,6 +89,6 @@ public function scopeForLevel($query, $level)
8989
*/
9090
public function scopeCountable($query)
9191
{
92-
return $query->whereIN('type', ['reply', 'note']);
92+
return $query->whereIN('type', ['reply', 'note', 'completetx']);
9393
}
9494
}

0 commit comments

Comments
 (0)