# FieldFilterTransformer throwing null index 'filter'

**URL:** https://forum.mautic.org/t/fieldfiltertransformer-throwing-null-index-filter/28607
**Category:** Product Support
**Created:** [July 14, 2023, 10:13am UTC](https://forum.mautic.org/t/fieldfiltertransformer-throwing-null-index-filter/28607 "2023-07-14T10:13:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![astrylis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/astrylis/32/6421_2.png) [@astrylis](https://forum.mautic.org/u/astrylis)
#### Post date: [July 14, 2023, 10:13am UTC](https://forum.mautic.org/t/fieldfiltertransformer-throwing-null-index-filter/28607/1 "2023-07-14T10:13:38Z")

</div>

**Your software**  
My Mautic version is:4.4.5  
My PHP version is:8.0  
My Database type and version is:mariaDb v10

**Your problem**  
My problem is:  
FieldFilterTransform is throwing the following error:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1b00f9c5029c407d399f9f20e32bcb622368228b.png)

This only happens when I add a new filter field for a datetime using -18 months or 3 months ago or using the date picker

Going through the code with x debug the array items that I have as part of the array of filters all have 8 items except the final which only has 6. It is missing the filters. Here is a screenshot of the array  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/8/80d2cfb7acb2120faaedc10dfe319b0c71201683.png)

These errors are showing in the log:

Steps I have tried to fix the problem:  
Doing the following fixes the issue  
changing line 83 from

```auto
 if ('datetime' == $f['type'] && null !== $f['filter']) {

```

To

```auto
 if ('datetime' == $f['type'] && null !== $f['properties']['filter']) {

```

I am asking if this is okay to do? or is the potential issue somewhere else?
