Skip to content

Commit e9558d2

Browse files
FOUR-23617: When reloading the page, the completed status filter shows all clear
1 parent ad88b87 commit e9558d2

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎ProcessMaker/Traits/TaskControllerIndexMethods.php‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,6 @@ private function indexBaseQuery($request)
2727

2828
$query = ProcessRequestToken::exclude(['data']);
2929

30-
// If all_inbox is true and user has process requests, filter to only show the latest process
31-
if ($request->has('all_inbox') && $request->input('all_inbox') === 'false') {
32-
$latestProcessRequest = ProcessRequestToken::where('user_id', auth()->id())
33-
->orderBy('created_at', 'desc')
34-
->first();
35-
36-
if ($latestProcessRequest) {
37-
$query->where('process_id', $latestProcessRequest->process_id);
38-
}
39-
}
40-
4130
$query = $query->with([
4231
'processRequest' => function ($q) use ($includeData) {
4332
if (!$includeData) {

‎resources/js/tasks/components/ListMixin.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ const ListMixin = {
8787
if (this.additionalIncludes) {
8888
include.push(...this.additionalIncludes);
8989
}
90-
91-
const getAllTasksInbox = "&all_inbox=true";
9290
// Load from our api client
9391
ProcessMaker.apiClient
9492
.get(
@@ -98,7 +96,6 @@ const ListMixin = {
9896
this.perPage + this.sumCards
9997
}${filterParams}${this.getSortParam()}&non_system=true` +
10098
`&processesIManage=${this.processesIManage ? "true" : "false"}` +
101-
getAllTasksInbox +
10299
advancedFilter +
103100
this.columnsQuery,
104101
{

0 commit comments

Comments
 (0)