error_message does not work with php 8.1
Posted: 2022-07-16 19:31
I am using the following formula in before update:
Works perfectly on 7.4, but does nothing in 8.1, as if the formula is not there.
Any idea what I should change in the formula to make it work in 8.1?
The funny part is I have other formulas almost same as this one (just different message), work on both.
I am just having hard time with this particular one, cannot see why it is not working!
Changing php from 8.1 to 7.4 it works, if I change back it stops!
thanks
Code: Select all
$chkCer=sqlvalue("select status from freight where `id` = {$data['freight']}",$eo);
if ( $chkCer =='Canceled'){$args['error_message'] = 'Alert: Canceled!';return FALSE;};
Any idea what I should change in the formula to make it work in 8.1?
The funny part is I have other formulas almost same as this one (just different message), work on both.
I am just having hard time with this particular one, cannot see why it is not working!
Changing php from 8.1 to 7.4 it works, if I change back it stops!
thanks