In node.module, line 572 there is this definition when creating the body instance:

      'widget_type' => 'text_textarea_with_summary',

it should be

      'widget' => array(
        'type' => 'text_textarea_with_summary',
      ),
CommentFileSizeAuthor
#1 node.patch553 bytesdroplet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

droplet’s picture

Status: Active » Needs review
FileSize
553 bytes

oh.it's not easy to catch it. patch base on your comment.

yched’s picture

Status: Needs review » Reviewed & tested by the community

Ugh, right. The 'text_textarea_with_summary' widget is the default widget for the 'text_with_summary' field type, so the fields end up with the expected widget anyway, but this should be fixed. Also means that no test need to be fixed or added for that.

yched’s picture

Version: 7.x-dev » 8.x-dev
Issue tags: +Needs backport to D7

Actually, needs to get in d8 first.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x and 8.x. Thanks.

I read up on the code to understand what is going on -- not trivial! :/

Status: Fixed » Closed (fixed)
Issue tags: -Needs backport to D7

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