You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using Nova Advanced Medialibrary with your package, and I want to delete files not used anymore. I'm currently overriding the method removeCallback to remove those files, but actually the callback is not called if all layouts are removed !
Is this on purpose ?
See the file Whitecube\NovaFlexibleContent\Flexible.php, in the method syncAndFillGroups :
It avoids code duplication and enhances code readability. Also, we could add some improvements to the fireRemoveCallbacks method in order to make it work without a $new_groups collection as parameter.
Of course, please make a PR for this, it is definitely a bug.
For the other suggested changes in HasMediaLibrary, can you open separated PRs so we don't have to mix subjects? Thanks!
Thanks a lot for your fast answer! Just opened a PR for that.
I'll take a look for another one to update the HasMediaLibrary trait properly. I'm actually running in a segfault error right now and having a hard time figuring out where it comes from... I only know it happens on the line 34 in Laravel\Nova\Http\Controllers\ResourceUpdateController : Nova::actionEvent()->forResourceUpdate($request->user(), $model)->save(); (the actionEvent() is causing it) when trying to upload a file within a flexible using Nova-Media-Library package. Not sure if you can actually help so :)
Hi,
I am using Nova Advanced Medialibrary with your package, and I want to delete files not used anymore. I'm currently overriding the method
removeCallback
to remove those files, but actually the callback is not called if all layouts are removed !Is this on purpose ?
See the file
Whitecube\NovaFlexibleContent\Flexible.php
, in the methodsyncAndFillGroups
:precisely
I am currently overriding this method as a workaround :
I could create a PR to fix this and to add some more usage to the
HasMediaLibrary
trait if you wishThe text was updated successfully, but these errors were encountered: