CalderaWP / Caldera-Forms

Drag and drop, responsive WordPress form builder.
https://CalderaForms.com
GNU General Public License v2.0
187 stars 163 forks source link

Activating " Scroll To Top On Submit" breaks attaching uploaded files to emails. #2022

Open mexn opened 6 years ago

mexn commented 6 years ago

What Version Of Caldera Forms, WordPress and PHP Are You Using?

WordPress Version: 4.8.2PHP Version: 7.1.8MySQL Version: 5.7.18Caldera Forms Version: 1.5.6.2WP_DEBUG:

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

Yes

What Is The Unexpected Behaviour?

Activating "Scroll To Top On Submit" breaks attaching uploaded files to emails.

What PHP Errors Have You Logged While Reproducing This Bug?

None. Debugging showed, that this check if( in_array( Caldera_Forms_Field_Util::get_type( $field ), $form ) ){ return ! empty( $field[ 'config' ][ 'attach'] ); } in classes/files.php should_attach method fails, if the setting is on.

Shelob9 commented 6 years ago

@mexn Thanks for using Caldera Forms. It would be very helpful if you could attatch a screenshot of the settings for your field. It's hard to test these issues since any combination of those 3 checkboxes (Add To Media Library, etc.) creates a different behaviour.

Shelob9 commented 6 years ago

Oops, didn't mean to close. Probably is a bug, just need to know which of the combinations I need to test with.

mexn commented 6 years ago

I just created a small testing form with the file input and a submit button and only "Attach to Mailer" activated. form