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.
Omega is generating the following error in the logs:
Notice: Undefined index: #id in omega_form_alter() (line 360 of omega/omega/template.php
Comment | File | Size | Author |
---|---|---|---|
#2 | omega-undefined_index-2391751-2.patch | 1.01 KB | grasmash |
#1 | omega-undefined_index-2391751-1.patch | 937 bytes | grasmash |
Comments
Comment #1
grasmash CreditAttribution: grasmash commentedComment #2
grasmash CreditAttribution: grasmash at Acquia for U.S. Department of Justice commentedA bit of a more robust solution.
Comment #3
das-peter CreditAttribution: das-peter commentedA bit unfortunate that we've to do this that way but more defensive code is better :)
In my case it's Revision Scheduler that triggers the notice by invoking
hook_form_alter()
on its own.Patch looks good, there's only one tiny nitpick:
One leading space missing.
But I'd say RTBC.
Edit: Typo fixed.
Comment #4
fubhy CreditAttribution: fubhy commentedThanks.