mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
fix Issue #1890
This commit is contained in:
@@ -71,7 +71,7 @@ class TicketSearch extends Component
|
||||
->with(['user', 'category', 'priority'])
|
||||
->where('user_id', '=', $this->user->id)
|
||||
->when($this->show === false, fn ($query) => $query->whereNull('closed_at'))
|
||||
->when($this->show, fn ($query) => $query->whereNotNull('closed_at')->orWhereNull('closed_at'))
|
||||
->when($this->show, fn ($query) => $query->whereNotNull('closed_at'))
|
||||
->when($this->search, fn ($query) => $query->where('subject', 'LIKE', '%'.$this->search.'%'))
|
||||
->orderBy($this->sortField, $this->sortDirection)
|
||||
->paginate($this->perPage);
|
||||
|
||||
Reference in New Issue
Block a user