Skip to content

Commit

Permalink
Fix for uploads in list email plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Nov 19, 2016
1 parent fe150a8 commit e5c3e49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/fabrik_list/email/email-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions plugins/fabrik_list/email/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ define(['jquery', 'fab/list-plugin', 'fab/fabrik'], function (jQuery, FbListPlug
jQuery.ajax({
type : 'POST', // define the type of HTTP verb we want to use (POST for our form)
url : 'index.php', // the url where we want to POST
data : jQuery(this).serialize(), // our data object
encode: true
//data : jQuery(this).serialize(), // our data object
data: new FormData(this),
encode: true,
processData: false,
contentType: false
})
.done(function (data) {
form.html(data);
Expand Down
2 changes: 1 addition & 1 deletion plugins/fabrik_list/email/models/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ private function _to()

if ($toType == 'table' || $toType == 'table_picklist')
{
$to = $input->get('list_email_to', '', 'array');
$to = $input->get('list_email_to', array(), 'array');
}
else
{
Expand Down

0 comments on commit e5c3e49

Please sign in to comment.