Extrafield link with sql filter broken after update 16->18

Hi,

I am updating our dolibarr from 16 to 18.0.3 at the moment.
We have an extrafield added to supplier orders where we select an internal user that gets the products after delivery.
Type: link
Value: User:user/class/user.class.php::(t.employee = '1') AND (t.statut = '1')

Works in 16 but breaks in 18 and develop (19) – (have not tested in 17)
I am also updating from php 7.4.x to 8.2.x but I am pretty sure that is not the problem.

I could not find any logging for the extrafields sql statement. Maybe I was too stupid at the moment but debugging this not possible for me.

What is the new format for SQL filtering on the statement?
Does anyone have the same issue?