Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jul 11, 2024
2 parents 7584c30 + 498a443 commit c1937b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Middleware/AssetCountForSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle($request, Closure $next)
try {
$total_assets = Asset::count();
if ($settings->show_archived_in_list != '1') {
$total_assets = Asset::Archived()->count();
$total_assets -= Asset::Archived()->count();
}
view()->share('total_assets', $total_assets);
} catch (\Exception $e) {
Expand Down

0 comments on commit c1937b6

Please sign in to comment.