Follow-up to #2214241: Field default markup - removing the divitis

Classy's field--node--uid.html.twig template has a mistake, it's referring to a now-removed field_name_class variable.

This results in output like: field--name-

Proposed resolution

Fix it, it will output field--name-uid

Remaining tasks

  • Patch
  • Review

User interface changes

Potentially some fixes based on this line in /core/modules/node/node.js:

var name = $authorContext.find('.field--name-uid input').val();

API changes


Data model changes


#2 uid_field_missing_data-2558533-2.patch535 bytesCottser
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 110,466 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


Cottser created an issue. See original summary.

Cottser’s picture

Status: Active » Needs review
535 bytes
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 110,466 pass(es). View

I grepped for field_name_class and this is the last one.

I would tag this with needs tests but I don't think that's a thing for Classy as far as I know. Manual testing may have to suffice, anyone feel free to disagree :)

andypost’s picture

Status: Needs review » Reviewed & tested by the community


core/themes/classy/templates/field/field--node--uid.html.twig:25:    'field--name-' ~ field_name_class,
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 62abde4 and pushed to 8.0.x. Thanks!

  • alexpott committed 62abde4 on 8.0.x
    Issue #2558533 by Cottser: UID field missing data for field--name- class

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.