Skip to content

Fixed audit images not displaying inline#18074

Merged
snipe merged 1 commit intodevelopfrom
smaller-audit-image-fix
Oct 21, 2025
Merged

Fixed audit images not displaying inline#18074
snipe merged 1 commit intodevelopfrom
smaller-audit-image-fix

Conversation

@snipe
Copy link
Copy Markdown
Member

@snipe snipe commented Oct 21, 2025

Audit preview images were not loading in the audits tab previously. This PR fixes that.

Down the line, we need to normalize some of these weird exceptions. Audits don't have their own model, and while the new file uploads controller is a LOT cleaner than what we had, we have to shim in a few things where the FCO doesn't have a model, OR when the URL name or model name doesn't exactly match the directory.

This just fixes the missing audit image preview, but I'll work more on the file uploads controllers later.

(We should really be allowing uploads in general for audits, since it might include pdfs, etc, not just images, but that's a different PR.)

@snipe snipe changed the title Smaller fix for missing audit images Fixed audit images not displaying inline Oct 21, 2025
@snipe snipe merged commit cc5afb1 into develop Oct 21, 2025
8 checks passed
@snipe snipe deleted the smaller-audit-image-fix branch October 21, 2025 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant