Hi Bob,
Event Switcher: when $form->data['change'] == '1', do something.
Before the event switcher, the following is performed:
<?php
$form->data['change'] = '0';
if ($form->data['old_status'] != $form->data['new_status'])
{
$form->data['change'] = '1';
}
?>
The event is triggered even the content of both fields are the same.
Then I tried:
<?php
$form->data['change'] = '0';
if ($form->data['old_status'] != $form->data['old_status'])
{
$form->data['change'] = '1';
}
?>
The event is triggered even they are same fields.
I changed the operator for != to <>, the result is the same.
Thanks,
kwok
Event Switcher: when $form->data['change'] == '1', do something.
Before the event switcher, the following is performed:
<?php
$form->data['change'] = '0';
if ($form->data['old_status'] != $form->data['new_status'])
{
$form->data['change'] = '1';
}
?>
The event is triggered even the content of both fields are the same.
Then I tried:
<?php
$form->data['change'] = '0';
if ($form->data['old_status'] != $form->data['old_status'])
{
$form->data['change'] = '1';
}
?>
The event is triggered even they are same fields.
I changed the operator for != to <>, the result is the same.
Thanks,
kwok