Manually removing lead from segment doesn't always work properly
Author: JonasLudwig1998Created May 8, 2026Updated Sep 25, 2026
Labelsbugsegmentsstale
Mautic Series
7.1.x series
Mautic installed version
7.1.0
Way of installing
I downloaded a release from https://www.mautic.org/mautic-releases
PHP version
8.5.3
What browsers are you seeing the problem on?
No response
What happened?
When manually removing a lead from a segment which was manually added before the entry in the table lead_lists_leads will be deleted instead of set to manually_removed = 1. Couldn't this result in problems because leads could now end up via segments update command in that segment again even though they were manually removed?
How can we reproduce this issue?
Step 1: Add a lead to a segment via UI and see that an entry is added to lead_lists_leads with manually_added = 1 Step 2: Remove the lead from segment via UI and see that the entry in lead_lists_leads is deleted
Relevant log output
Code of Conduct
- I confirm that I have read and agree to follow this project's Code of Conduct
Care about this issue? Want to get it resolved sooner? If you are a member of Mautic, you can add some funds to the Bounties Project so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs here.
Source: mautic/mautic