Fixed: Epsilon: Birthday Plugin fails to store

Status
Not open for further replies.

fstorch

Member
Just found that the birthday plugin in Epsilon fails to store the data.
No error shown, but no Birthday in DB. Still worked fine in Delta.
At first glance, couldn’t find any log entry for the problem, but currently too busy to investigate deeply.
Fails in front end and back end.
Can be re-created in my plain Joomla!4 fabric4 meanwhile epsilon test site:
http://jtest.conacare.de/index.php/birthday-list/list/5

Regards … Franz
 
Confirmed (mea culpa...).
It's working if you set "save empty dates as null" in birthday "List"
 
This is actually set already:
upload_2023-8-29_12-36-15.jpeg
 
Can you try plugins\fabrik_element\birthday\birthday.php line 417

Code:
    private function _indStoreDBFormat($val)
    {
        $params = $this->getParams();

        if (is_array($val))
        {
            $val = $val[2] . '-' . $val[1] . '-' . $val[0];
        }
       
        if (!in_array('', explode('-',$val??''))) {
            //complete birthday
            return $val;
        }
        elseif ($params->get('empty_is_null', '1') == 0) return '0000-00-00';
        else return null;
    }
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top