Problem/Motivation

When you have a title_string configuration and the token is empty, you get this PHP warning.

Steps to reproduce

Proposed resolution

Do not add the title if it's empty. There is a fallback for the default_alt, but reusing the alt for the title is not correct and shouldn't be done, so it's better to just not have a title attribute then.

Remaining tasks

User interface changes

API changes

Data model changes

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 review

Merge request created.

gnikolovski’s picture

Assigned: Unassigned » gnikolovski

  • gnikolovski committed e383c617 on 2.0.x
    Issue #3428653 by Berdir, gnikolovski: Warning: Undefined array key "...
gnikolovski’s picture

Status: Needs review » Fixed

Fixed.

Status: Fixed » Closed (fixed)

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