In Panels all the content fields are listed at the visibility rule section. If you select any date field there, add a date and try to submit the settings form it returns the following error:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /panels/ajax/editor/access-configure-test/panel_context%3Anode_view%3Anode_view_panel_context_3/31/0
StatusText: Service unavailable (with message)
ResponseText: Recoverable fatal error: Argument 2 passed to drupal_array_get_nested_value() must be of the type array, null given, called in /sites/all/modules/contrib/date/date_elements.inc on line 449 and defined in drupal_array_get_nested_value() (line 6679 of /includes/common.inc).
In function date_combo_validate() the $element['#field_parents'] element is NULL in this case.
To reproduce the error:
- add a date field to any content type
- install panels + page manager - enable node template page (it's just one example to be able to create a pane with a visibility rule)
- add a pane (anything) and then on the pane context menu (gear icon) add a new visibility rule
- select the date field
- fill out the value and hit submit (you probably see the ajax error)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | date_broken_validation_from_panels_visibility_rule_2279831_2.patch | 625 bytes | itarato |
| #1 | date_broken_validation_from_panels_visibility_rule_2279831_2.patch | 645 bytes | itarato |
Comments
Comment #1
itarato commentedLet me know what you think.
Comment #3
itarato commentedComment #4
valentine94Test
Comment #6
podarok#3 commited. Thanks!