Redirect Plugin Not Working?

davez

Member
Hi,

Just been trying to get the redirect plugin to work on one site. It's all updated. What was weird is that it worked in Chrome, but not in Firefox.

I made one change to this file and now it works in both.
/public_html/plugins/fabrik_form/redirect/redirect.php
Code:
// Don't display system message if thanks is empty
     if (FArrayHelper::getValue($this->data, 'thanks_message', '') !== '')
     {
       $this->session->set($context . 'msg', $smsg);
     }
changed to
Code:
// Don't display system message if thanks is empty
     if (FArrayHelper::getValue($this->data, 'thanks_message', '') !== '')
     {
       $this->session->set($context . 'msg', $smsg[$this->renderOrder]);
     }
It was selecting the first message in the array which was the default system message. By adding the [$this->renderOrder], it selected the second one in the array.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top