I'm see the following error for each paragraph item that is added:

Notice: Undefined index: field_text in mee_field_widget_form_alter() (line 308 of /Users/glenn/websites/scald/sites/all/modules/contrib/scald/modules/fields/mee/mee.module).

When using the https://www.drupal.org/project/paragraphs module.

I have a paragraph bundle called "Text" that contains one Long text field(called field_text) that is enhanced with the CKeditor module.

I add a paragraph item with just text only and save the node. When I go to edit that node I see the error.

Let me know if I can provide any more information.

Comments

nagy.balint’s picture

Status: Active » Needs review
StatusFileSize
new758 bytes

This patch should solve the issue.

@gifad can you check the patch if you think its okey like that (since it affects your line)? It seems the settings should have been gotten from the $context instead of the $form_state.

gifad’s picture

@nagy.balint : Oh, this is not "my" line : I had just cut it from the (now defunct) function dnd_process_textarea($element, $form_state), which had no context information;
Obviously, the context argument is a better place to get field instance informations !

[Edit] BTW, this makes it work automagically for a field "Description" attached to an atom, which otherwise should have to be fetched from $form_state['field']['#parents']['atom0']['#fields']['field_description']['und']['instance']['settings']['context_default'] !

  • nagy.balint committed 34b4633 on 7.x-1.x
    Issue #2467625 by nagy.balint: Notice: Undefined index: field_text in...
nagy.balint’s picture

Status: Needs review » Fixed
gmclelland’s picture

I'm just confirming the fix removed the errors. Thanks everyone!

Status: Fixed » Closed (fixed)

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