dimoss
Well-Known Member
Joomla 4.2.9
Fabrik #4 Gamma 3
Cassiopeia
vanilla J & F installation
Hi,
I use the email form plugin to send email on Edit when a field changes on an existing record.
On Options->Condition I use the following which worked fine in F3.9 (PHP 7.4) as below:
$origData = $formModel->getOrigData();
$old = $origData[0]>fab_players___valid_raw;
$new = '{fab_players___valid_raw}';
if (($old != $new) && ($old == 0))
{return true;} //email will be send
else
{return false;} //email will not be send
In F4 returns the following error:
0 Call to a member function getOrigData() on null
The email fails to be sent but the field changes.
Thanks in advance for you help.
Fabrik #4 Gamma 3
Cassiopeia
vanilla J & F installation
Hi,
I use the email form plugin to send email on Edit when a field changes on an existing record.
On Options->Condition I use the following which worked fine in F3.9 (PHP 7.4) as below:
$origData = $formModel->getOrigData();
$old = $origData[0]>fab_players___valid_raw;
$new = '{fab_players___valid_raw}';
if (($old != $new) && ($old == 0))
{return true;} //email will be send
else
{return false;} //email will not be send
In F4 returns the following error:
0 Call to a member function getOrigData() on null
The email fails to be sent but the field changes.
Thanks in advance for you help.