# Empty field gets is not empty? - in Mautic 4.1.1

**URL:** <https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149>\
**Category:** Product Support\
**Created:** [March 21, 2022, 1:28pm UTC](https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149 "2022-03-21T13:28:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![media31](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/media31/32/679_2.png) [@media31](https://forum.mautic.org/u/media31)\
**Post date:** [March 21, 2022, 1:28pm UTC](https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149/1 "2022-03-21T13:28:06Z")

</div>

I need a filter that checks if a datefield is empty.

So I tried:

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

Date last Active - empty -

The field is correctly disabled and nothing is in it. If I save the segment, the field is still disabled but shows the current date time instead of nothing.

Is this just a display error or is something wrong?

Additionally the filter doesn’t really seem to be working, because I have many profiles without any date in this field and nobody gets into the segment.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 22, 2022, 10:29am UTC](https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149/2 "2022-03-22T10:29:35Z")

</div>

That should not look like this.  
When I choose empty, the prefilled text disappears.

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

---

<div class="post-metadata">

**Author:** ![media31](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/media31/32/679_2.png) [@media31](https://forum.mautic.org/u/media31)\
**Post date:** [March 23, 2022, 7:10am UTC](https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149/3 "2022-03-23T07:10:17Z")

</div>

And when you save your segment and look again? Is it still empty? Because in my case it get the date parameter after I save my segment but it is also disabled and grey (like in my screenshot).

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 23, 2022, 7:39am UTC](https://forum.mautic.org/t/empty-field-gets-is-not-empty-in-mautic-4-1-1/23149/4 "2022-03-23T07:39:22Z")

</div>

Oh wow, nice catch 😃  
So yes, it stays there:

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

But at the same time, the db doesn’t save that date.  
It’s a visual bug where the current server date is visible.

```auto
a:1:{i:0;a:7:{s:4:"glue";s:3:"and";s:5:"field";s:11:"last_active";s:6:"object";s:4:"lead";s:4:"type";s:8:"datetime";s:6:"filter";N;s:7:"display";N;s:8:"operator";s:5:"empty";}}

```

But for me the segment is populated:

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