Do you have any idea why an extra field would be included on submission, when only 1 field changed, and the form-options
are set to changed
only?
In the request, it includes the Action
, DT_RowId
, and the modified Email
field. However, there is an extra field, ResendEmail
which I did not change.
Any ideas?
Even when I explicitly define the column 'Email'
(commented out below), it will still include a superfluous ResendEmail
field.
}).on('click', 'tbody td:nth-child(4)', function (e) {
app.dteUnscheduled.inline(this)
// app.dteUnscheduled.inline(this, 'Email', {
// submit: 'changed'
// });
// app.dteUnscheduled.inline(this, {
// submit: 'changed'
// });
});
I should mention that the ResendEmail
field is a bit value, 0 or 1 from SQL. In DataTables, it is a rendered field:
{
data: "ResendEmail",
title: 'Resend',
className: 'text-center',
visible: (app.access_level === 'Admin') ? true : false,
render: function (data, type, row) {
if (type === 'display') {
// if the email bit is queued (1)
if (data) {
return '<i class="fas fa-history ml-1 text-success resend-popover data-toggle="popover" data-lastemaildate="' + row.ResendEmail + '"></i>';
} else {
return '<a class="resend-popover" href="#resend" data-toggle="popover" data-lastemaildate="' + row.LastEmailDate + '"><i class="fas fa-envelope"></i></a>';
}
};
//for all other types
return data;
}
},