I get blank screen at pages like /node/[nid]/revisions/[vid]/revert (for any node type) with the error in log:
Error: Call to a member function bundle() on string in filebrowser_theme_suggestions_container_alter() (line 307 of modules/contrib/filebrowser/filebrowser.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | filebrowser-node-object-2878294-3-D8.patch | 3.16 KB | alex.bukach |
Comments
Comment #2
alex.bukach commentedIt happens since
\Drupal::routeMatch()->getParameter('node')might return not only node object, but also raw node ID depending on menu path (see e.g. https://drupal.stackexchange.com/questions/229100/convert-view-route-par...).Comment #3
alex.bukach commentedCovered two more usages.
Comment #5
clivesj commentedThanks for the patch.
I have moved the helper function to filebrowser.common Service where the other helpers reside.
Commited to dev and released beta5
Comment #6
clivesj commented