Closed (fixed)
Project:
Filebrowser
Version:
8.x-2.0-alpha3
Component:
Directory Listing Pages
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2016 at 12:34 UTC
Updated:
11 Dec 2016 at 14:59 UTC
Jump to comment: Most recent
Comments
Comment #2
lpsolit commentedFrom what I can see in createUnsortedRowsAndColumns(), $column_names and $visible_columns are not in the same order:
The sort order of $column_names is given by MetadataInfoEventSubscriber.php while $visible_columns is sorted by data being in the filebrowser_metadata_entity DB table, which is different.
I suspect that the different behavior is due to the |if (count($this->formActions) > 0 )| check in listView(). But I don't understand Drupal internals well enough to investigate further. @clivesj, please help! :)
Comment #3
clivesj commentedif (count($this->formActions) > 0If the user has action rights (upload, delete etc) on the listing, the listing (array of data) is send to a form builder that will build a theme_ tableselect form.
If the user has no action the theme_table will be return right-away.
Now there are some changes in D8 that changed theme_table to a render element of type table. the table element can be displayed as a "tableselect" by adding '#tableselect' = true;I did some experimenting yesterday but there a couple of things not working well as there are also some ambiguous things in the documentation of the new render element.
I need some more time to investigate.
I think your other issue is related.Comment #5
clivesj commentedFixed in dev
Comment #6
clivesj commented