Bug: boostrap_tabs not used after manually generating an error in the Php Form Plugin

philBob

New Member
Hello

I think I found a bug on the current version of Fabrik (github).

On my test form (3 fields), I use the "bootstrap_tabs" template (Form -> Layout -> Template).
In the php form plugin, on "onBeforeStore" event, I manually set an error with this code (for test purpose):

$formModel->errors['survey___name'][0][]='manual error'; // "name" is the id of one of my fields.
return false;

When I hit the Save button in my form, the page reload but it's not anymore the "boostrap_tabs" template which is used but the default "bootstrap" one...

PS1: the form is called from a standard joomla menu (Menu Item type: Form)

PS2 : The problem occurs only when generating an error in the PHP Form plugin. If I use a validation plugin on my field (i.e. the notempty plugin) it works correctly.

PS3: It works well if I force, in the menu options / Fabrik Form Options, the template to "boostrap_tabs".

Regards
 
I think PS3 is the mitigation for this one. It's a corner case, and if there's a simple mitigation, just go with that. If it becomes an issue even with that, I'll take a look.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top