snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
9.85k stars 2.99k forks source link

Fixes #14692 - set default variables for sidebar totals #14693

Closed snipe closed 3 weeks ago

snipe commented 3 weeks ago

This one slipped past me . The AssetCountForSidebar middleware does some quick counting queries and shares with them all views for easy access and totals in the sidebar. Unfortunately, since this middleware also fires during /setup, where the migrations might not have been run yet, you might run into a 500 error on setup (since we're querying tables that might not exist until the next screen (which is database migrations).

Fixes #14692

what-the-diff[bot] commented 3 weeks ago

PR Summary