As a result of the feature at #1834998: Add support for the Search API module, there is an undefined index what used with the Apache Solr Search Integration module on line 34 of date_facets.module.

date_facets-undefined-index.png

Comments

cpliakas’s picture

Title: Undefined indes "field type" on line 34 of date_facets.module » Undefined index "field type" on line 34 of date_facets.module

Fixed typo in title.

cpliakas’s picture

Reason is that Search API uses a non-standard "field type" key which is not set for other search backends. The date_facets module should check whether it exists before calling it.

cpliakas’s picture

Status: Active » Needs review
StatusFileSize
new953 bytes

Attached patch validates that the key exists before using it in the condition.

cpliakas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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