- Issue created by @jhan1112
- 🇫🇷France sgostanyan
Thanks for your report. The patch sounds good to me
Released as 1.0.1 Automatically closed - issue fixed for 2 weeks with no activity.
The getUsedMediaIds method in the OrphansMediaManager class has a logical issue. The $currentList variable is initialized inside the loop but never actually gets updated or used properly. Because of that, the array_merge($currentList, $mediaIds) line isn’t doing what it’s supposed to — $currentList is always just an empty array.
As a result, the method might incorrectly flag media items as orphans. For example, if Media C is used by an entity of type A but not by an entity of type B, it could still be marked as an orphan even though it’s in use.
Fix the line 111 of the OrphansMediaManager class.
Active
1.0
Code
Thanks for your report. The patch sounds good to me
Released as 1.0.1
Automatically closed - issue fixed for 2 weeks with no activity.