bea
Active Member
Hi,
I ran into an issue, which I don't understand.
I've a form PHP to write a new record into a second table with certain conditions.
The value of one of this elements (calc, condition) returns always a wrong value with var_dump (e.g. in database value=3 and in var_dump = 1). There are other elements with similar calc , which work correctly.
I've now changed the script from
to
Why does this element need an array and the others not???
Cheers,
Bianka
I ran into an issue, which I don't understand.
I've a form PHP to write a new record into a second table with certain conditions.
The value of one of this elements (calc, condition) returns always a wrong value with var_dump (e.g. in database value=3 and in var_dump = 1). There are other elements with similar calc , which work correctly.
I've now changed the script from
PHP:
$losses3_rework_col =$formModel->getElementData('fab_cp1_line_tour___losses3_rework_col',true);
PHP:
$losses3_rework_col =$formModel->getElementData('fab_cp1_line_tour___losses3_rework_col');
$losses3_rework_col=is_array($losses3_rework_col) ? $losses3_rework_col[0]:$losses3_rework_col;
Cheers,
Bianka