- Issue created by @lauriii
- Status changed to Needs review
almost 2 years ago 3:30pm 18 February 2023 - ๐ซ๐ฎFinland lauriii Finland
Tagging this with Field UX even though this is not directly related to Field UI because this is still related to the user flow of configuring a content type.
- Status changed to RTBC
almost 2 years ago 6:46pm 18 February 2023 - ๐บ๐ธUnited States smustgrave
Confirmed the issue on Umani demo.
Patch fixes the issueAdded screenshots to issue summary to show before/after
- ๐บ๐ธUnited States andy-blum Ohio, USA
+1 RTBC
Discussed with @laurii in slack the idea of adding a check of
\Drupal::routeMatch()->getParameter('node_revision')
to ensure revision pages also get the node object, but it seems the node_revision parameter is always accompanied by the node parameter. Ultimately decided checks for node and node_preview cover all use cases. - ๐ฌ๐งUnited Kingdom catch
I think we should be trying to deprecate this rather than using it more widely. Why is it happening in template_preprocess_page() and not node_preprocess_page(), and/or why isn't it generic for entity types - if it's really needed at all. Having said that, maybe we want to commit this and look at it more widely in a different issue.
- ๐ซ๐ฎFinland lauriii Finland
+1 for looking into deprecating the
node
variable in a follow-up. FWIW, this is not adding additional usages, it just fixes the current, somewhat broken behavior. This also addresses usability impacting bug in Umami. - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
I think removing
node
could be disruptive to many sites, even if core doesn't use it heavily. However, I think a followup to discuss that should be created, and once that exists I'd be inclined to commit this ๐ - ๐ซ๐ฎFinland lauriii Finland
Opened follow-up for #6: ๐ template_preprocess_page has a soft dependency on node module Active .
-
bnjmnm โ
committed 36145a51 on 10.1.x
Issue #3342891 by lauriii, smustgrave, andy-blum, catch: 'node' variable...
-
bnjmnm โ
committed 36145a51 on 10.1.x
-
bnjmnm โ
committed cad17767 on 10.0.x
Issue #3342891 by lauriii, smustgrave, andy-blum, catch: 'node' variable...
-
bnjmnm โ
committed cad17767 on 10.0.x
- ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Committed to 10.1.x, cherry-picked to 10.0.x. Will backport this non-disruptive fix to 9.5.x after confirming tests pass on that version.
- Status changed to Fixed
almost 2 years ago 2:53pm 1 March 2023 - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Cherry picked to 9.5.x as well.
- Status changed to RTBC
almost 2 years ago 4:13pm 3 March 2023 - ๐ฉ๐ชGermany luenemann Sรผdbaden, Germany
Commit to 9.5.x is missing:
https://git.drupalcode.org/project/drupal/-/commits/9.5.x?search=Issue+%... -
bnjmnm โ
committed ead0950d on 9.5.x
Issue #3342891 by lauriii, smustgrave, andy-blum, catch: 'node' variable...
-
bnjmnm โ
committed ead0950d on 9.5.x
- Status changed to Fixed
almost 2 years ago 6:12pm 3 March 2023 - ๐บ๐ธUnited States bnjmnm Ann Arbor, MI
Thanks @luenemann, looks like the push didn't take. This is up now.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 12:19pm 8 September 2023