1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

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

Discussion in 'Community' started by philBob, Oct 12, 2019.

  1. philBob

    philBob New Member

    Level: Community
    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
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    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
     

Share This Page