Bug: Date Field not saved
Posted: Wed Aug 19, 2020 3:38 pm
HI Steven,
There's a "nasty" bug here
if a date field is the first element in the array $CTSTN, array_search(...) returns 0 and the condition if($idx != false) is not evaluated to true. As a consequence, the date value is not stored in the database.
We need to use the !== operator. Please change it to:
Explanation:
https://stackoverflow.com/a/15934417/10132321
There's a "nasty" bug here
Code: Select all
$idx = array_search($fields[$R], $CTSTN);
if($idx != false){ //-- valid field names
We need to use the !== operator. Please change it to:
Code: Select all
if($idx !== false){ //-- valid field names
https://stackoverflow.com/a/15934417/10132321