on Long Text/Multiple value, html default value doesn't appear in new items

Created on 20 September 2011, about 13 years ago
Updated 31 July 2023, over 1 year ago

Hello,

I don't know how to solve this, but I thought it could be usefull to report the bug

here is the situation :
Long text field
html default value + full html format activated
Multiple value allowed

When I create the content, the default html value is here, but if I add another item, the default value seems to be forgotten for the new item..

Regards
-p-

🐛 Bug report
Status

Closed: works as designed

Version

11.0 🔥

Component
Field 

Last updated 1 day ago

Created by

🇧🇪Belgium pacome

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Status changed to Closed: works as designed over 1 year ago
  • 🇬🇧United Kingdom nlisgo

    It is my understanding that the expected behaviour is different from what is described in the issue summary.

    When you have a multi value field and you choose a default value then the first entry for the default value is for the first item and you can create subsequent default values:

    The html field is broken because you cannot supply multiple values for it.

    The behaviour in #14 is also expected beahviour. When you have a multi value you field then empty fields are ignored so you would find that if you returned to the interface for the default value that the second empty entry has been removed.

    The bug I am experiencing is that I can not seem to set a second (or third and so on) default value for formatted text fields.

    I am going to close this ticket as working as expected and open another issue to document the bug that I am experiencing which triggers the following error:

    Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in Drupal\text\Plugin\Field\FieldType\TextFieldItemList->defaultValuesFormValidate() (line 24 of /data/app/core/modules/text/src/Plugin/Field/FieldType/TextFieldItemList.php).

Production build 0.71.5 2024