Skip to content

Fix file category assignments if the file is in an upload location shared across MSM sites#4929

Merged
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
litzinger:bug/shared-file-categories
Aug 6, 2025
Merged

Fix file category assignments if the file is in an upload location shared across MSM sites#4929
TomJaeger merged 1 commit intoExpressionEngine:7.devfrom
litzinger:bug/shared-file-categories

Conversation

@litzinger
Copy link
Contributor

When editing categories on a file that is in an upload location that has the "Share Upload Directory on all sites?" option enabled, the category assignments will not stick. This query fails because the file actually has a site_id value of 0.

Also removed unused $cats variable.

@TomJaeger TomJaeger requested a review from bryannielsen August 5, 2025 19:38
@TomJaeger TomJaeger added this to the 7.5.14 milestone Aug 5, 2025
@litzinger
Copy link
Contributor Author

@TomJaeger TomJaeger merged commit 7259fd6 into ExpressionEngine:7.dev Aug 6, 2025
22 checks passed
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.

3 participants