mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 15:09:40 -08:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
c1937b6ea8
|
@ -36,7 +36,7 @@ class AssetCountForSidebar
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue