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.
A lot of Notice: Undefined offset: 0 in conditional_fields_evaluate_dependency()
notices get reported when using conditional fields with select elements.
The attached patch makes those notices go away without changing the actual behaviour of the method.
Comment | File | Size | Author |
---|---|---|---|
#3 | undefined_offset_notice_2897498-3.patch | 1.16 KB | Baysaa |
undefined_offset_notice.patch | 1.17 KB | legolasbo | |
Comments
Comment #2
colanWe're supposed to be using the short array syntax nowadays.
Comment #3
Baysaa CreditAttribution: Baysaa as a volunteer commentedReroll for alpha-4. Uses short array syntax and applies cleanly.
Comment #4
Baysaa CreditAttribution: Baysaa as a volunteer commentedComment #5
colanThis looks like a duplicate of #2893597: Notice: Uninitialized string offset. Is there anything missing, or can we mark it as such?
Comment #6
legolasboClosing this since there hasn't been an update in over 6 months.
Comment #7
firfin CreditAttribution: firfin commentedOr dupe of #2834358: "Uninitialized string offset: 0 in conditional_fields_evaluate_dependency()" when saving node form with conditional fields applied which is fixed in dev