Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
When submitting an entity form, I get the following error messages:
Notice: Undefined index: #entityform in ajax_form_entity_entity_view_alter() (line 439 of ...\sites\all\modules\contrib\ajax_form_entity\ajax_form_entity.module).
Notice: Undefined index: #entityform in ajax_form_entity_entity_view_alter() (line 440 of ...\sites\all\modules\contrib\ajax_form_entity\ajax_form_entity.module).
Notice: Trying to get property of non-object in ajax_form_entity_entity_view_alter() (line 440 of
...\sites\all\modules\contrib\ajax_form_entity\ajax_form_entity.module).
The attached patch hides these notices, but I didn't test if it works afterwards (I don't use edit/delete links so I'm not sure if the code still works).
Comment | File | Size | Author |
---|---|---|---|
#1 | ajax_form_entity-undefined_index_entityform-2145225-1.patch | 498 bytes | lklimek |
Comments
Comment #1
lklimek CreditAttribution: lklimek commentedComment #2
eme CreditAttribution: eme commentedOk. Thanks. It may work indeed like this.
This bug is specific for entityforms integration.
Commited to dev. To be tested.
Comment #3
eme CreditAttribution: eme commentedComment #4
eme CreditAttribution: eme commented