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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

itarato’s picture

Status: Needs work » Needs review
FileSize
645 bytes

Let me know what you think.

Status: Needs review » Needs work
itarato’s picture

Valentine94’s picture

Status: Needs work » Needs review

Test

  • podarok committed 8527faa on 7.x-2.x authored by itarato
    Issue #2279831 by itarato: Fixed Date field validation breaks if it's...
podarok’s picture

Status: Needs review » Fixed

#3 commited. Thanks!

Status: Fixed » Closed (fixed)

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