Problem/Motivation

Turns out that ?? $fallback only applies if the value is NULL, not an empty string. Happens when you have some attribute definitions that do not have a template.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ww_publish-3211642

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs work

Pushed a fix for ParagraphField::getAttributeContent(), but we have the same method also on Field. Lets use this opportunity to move this method and maybe 2-3 other identical methods in those classes to the FieldTrait. Note that some classes might have the same name but different logic/arguments.

johnchque made their first commit to this issue’s fork.

johnchque’s picture

Status: Needs work » Needs review
berdir’s picture

Status: Needs review » Needs work
johnchque’s picture

Status: Needs work » Needs review

  • Berdir committed c943340 on 2.x authored by johnchque
    Issue #3211642 by Berdir, johnchque: Fallback for missing attribute...
berdir’s picture

Status: Needs review » Fixed

Thanks, merged.

Status: Fixed » Closed (fixed)

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