raw placeholders not catched in php validation

lcollong

FabriKant d'applications web
Hi,

Using F4-Zeta on J4.4.0 and PHP 8.1.
Using placeholders in the condition field of the php validation.
This test works :
Code:
return (intval('{f_dossiers___complet}') == 1);
But this does not :
Code:
return (intval('{f_dossiers___complet_raw}') == 1);

Actually the placeholder send back the string itself ("f_dossiers___complet_raw").

Laurent
 
Hmmm, not actually seeing any placeholders being substituted. Can you add the following at the top of the condition and report back on the resulting display in your browser:
Code:
echo '<pre>Normal: '.print_r('{f_dossiers___complet}', true).' Raw: '.print_r('{f_dossiers___complet_raw}', true); die;
 
Result :
Code:
Normal: 1 Raw: {f_dossiers___complet_raw}

Setup : Capture.png
 
I think F4 has some places where _raw is not set (and non-raw contains the raw value)
I have seen this somewhere, too (but can't remember at the moment).
 
It's a regular field (lastname) element with a notempty validation which has the condition below.
 
Just tested F3: in condition {xy} and {xy_raw} are replaced but both with the raw value
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top