Closed (fixed)
Project:
File Entity (fieldable files)
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 May 2016 at 10:59 UTC
Updated:
17 May 2023 at 16:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
slashrsm commentedFile entity provides a view on the same url as core. When file entity is installed core's view get disabled. When file entity is disabled I'd expect core's view to be kept and maybe even re-enabled. However, it is deleted as file_entity gets listed as one of its dependencies. I am not sure why that happens and didn't have time to dig into it.
This is not critical as there are ways to re-import core's view if needed.
Comment #3
f2t commentedI have the same issue.
Comment #4
mahfuznz commentedHi,
This happened to me as well. How can I re-install core's files view?
Many thanks,
Mahfuz
Comment #5
marcoscanoGo to
/admin/config/development/configuration/single/import, select "View", then paste there the contents ofcore/modules/file/config/optional/views.view.files.ymland click "Import"Comment #6
jacqui.tenderwolf commentedThank you, @marcoscano! FYI in case others find the same, you may need to remove
file_entityfrom the list of module dependencies in the config export yaml (this is why the View gets deleted when uninstalling the module). Then it should import just fine.Comment #7
jacqui.tenderwolf commentedAlso, in order for the View to show back up as a tab on the
/admin/contentpage, you'll need to re-enable the View (or edit the configuration yaml by hand before importing...status: trueinstead ofstatus: false).Comment #8
kunalkursija commentedConfirming - This issue still exists.
Comment #9
brunapimenta commentedAdding patch to enable core Files view when uninstalling. I also removed the code that disabled core File view from install hook because when the view is disabled, even file_entity's one existing the menu link disappears.
Both views can be enabled, at the end its the file_entity view which will be displayed.
I tested in Drupal core version: 8.8.6 and 8.8.7
Comment #10
brunapimenta commentedComment #11
joseph.olstadThanks!
The uninstall portion of this patch looks correct, not sure about the install change though. Perhaps @Berdir can weigh in on this?
I will assign to Berdir
Comment #12
berdirThe extra ; here inside the condition causes the php syntax/lint error.
I think the order when both are enable is a bit unpredictable, maybe once the syntax error is fixed the tests will tell us if they are happy or not. If we have explicit tests for that, which I would expect we do, as we test some features on that view.
Comment #13
brunapimenta commentedOops! My bad, sorry.
Thanks for the review.
New patch added :)
Comment #14
infohome commentedComment #16
joseph.olstad