Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
If any hooks that run before history_node_view_alter() add assets to a node, they will be completely removed.
I found this while testing Display Suite module, its CSS wasn't being loaded.
Proposed resolution
Fix it
Consider adding a regression test, but not sure that's necessary
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#6 | history-2191543-6.patch | 1.54 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettMostly outdenting.
Comment #2
jibranTagging for JS ninjas.
Comment #3
nod_Lol what the hell is that thing. I'll open a follow-up to clean that up. Thanks jibran.
Comment #4
tim.plunkett1: history-2191543-1.patch queued for re-testing.
Comment #6
tim.plunkettComment #7
andypostDo this inline add dependency for Drupal object?
(Drupal)
Comment #8
tim.plunkettNo idea, I don't change that line, it's just an indentation change.
Comment #10
BerdirI thought this went in :)
I don't really see the point in adding a test, we would have to add a test module to add some #attached thing before history and then verify it's on the page, but it's seems like a very one-off thing to test for.
The fix is RTBC, going to let a maintainer decide if we really want to add YATM (yet another test module) to be able to test this.
Comment #11
alexpottCommitted 57cf7f0 and pushed to 8.x. Thanks!