Skip to content

Commit c790147

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 80c39c5 + 6b87c90 commit c790147

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/Http/Middleware/AssetCountForSidebar.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ public function handle($request, Closure $next)
3434
}
3535

3636
try {
37-
$total_assets = Asset::count();
38-
if ($settings->show_archived_in_list != '1') {
39-
$total_assets -= Asset::Archived()->count();
40-
}
37+
$total_assets = Asset::AssetsForShow()->count();
4138
view()->share('total_assets', $total_assets);
4239
} catch (\Exception $e) {
4340
Log::debug($e);

resources/views/partials/bootstrap-table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1698,7 +1698,7 @@ class: 'btn btn-primary',
16981698
window.location.href = '{{ (request()->input('status') == "deleted") ? route('models.index') : route('models.index', ['status' => 'deleted']) }}';
16991699
},
17001700
attributes: {
1701-
title: '{{ (request()->input('status') == "Deleted") ? trans('general.list_all') : trans('general.deleted') }}',
1701+
title: '{{ (request()->input('status') == "deleted") ? trans('general.list_all') : trans('general.deleted') }}',
17021702
17031703
}
17041704
},

0 commit comments

Comments
 (0)