MenuLinkContent::baseFieldDefinitions() has a couple $field->setSetting('default_value', $foo).
That doesn't work, 'default_value' is not a field setting, this should use setDefaultValue() instead.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Status: Active » Needs review
FileSize
1.29 KB

Patch

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quickfix

Alright :)

yched’s picture

Title: MenuLinkContent::baseFieldDefinitions() wrongly passes default values as a field setting, » MenuLinkContent::baseFieldDefinitions() wrongly passes default values as a field setting
yched’s picture

Wim Leers’s picture

Thanks, yched!

Berdir’s picture

I thought it might be a duplicate of #2417809: link and shortcut have baseFieldDefinition settings that do not do anything: default_value max_length, but that already got in. RTBC +1 :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.0.x. Thanks!

  • webchick committed b5b8da9 on 8.0.x
    Issue #2418117 by yched: MenuLinkContent::baseFieldDefinitions() wrongly...

Status: Fixed » Closed (fixed)

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

YesCT’s picture

I'm curious why we couldn't have a test that would have caught this.