When filtering on an indexed date field the process function doesn't have the right date attributes loaded to properly generate the time parts to create the timestamp.

  /**
   * {@inheritdoc}
   */
  protected function process(&$value) {
    if (is_numeric($value)) {
      $value = $this->processTimestamp($value, $this->currentDateAttributes);
    }
  }
}

The $this->currentDateAttributes is always blank and so the filtered value that goes to solr is always 0.

Instead it should load that specific field's date attributes.

CommentFileSizeAuthor
#4 3044906-currentattributes.patch1.47 KBminoroffense

Comments

minorOffense created an issue. See original summary.

minoroffense’s picture

Issue summary: View changes
minoroffense’s picture

Likely just needs an extra call to $this->getFieldSettings($name); before filtering.

minoroffense’s picture

Status: Active » Needs review
StatusFileSize
new1.47 KB

Adds the necessary call to get the current date field attributes when processing a filtered value.