N°3868 - "Error: Invalid filter parameter" on mass update

This commit is contained in:
acognet
2021-03-31 01:20:03 +02:00
parent 5be3496c8f
commit efeedcad30
5 changed files with 41 additions and 18 deletions

View File

@@ -82,16 +82,20 @@ var oTable{{ sListId }} = $('#{{ oUIBlock.GetId() }}').DataTable({
ordering: true,
{% if oUIBlock.GetOption("select_mode") is not empty %}
select: {
style: "{{ oUIBlock.GetOption("select_mode") }}"
style: "{% if oUIBlock.GetOption("select_mode") == "multiple" %}multi{% else %}single{% endif %}",
info: false
},
rowCallback: function (oRow, oData) {
if ($(this).closest('.ibo-panel--body').find('[name=selectionMode]').val() === "negative")
{
if (oSelectedItems{{ sListId }}.indexOf(oData.id) === -1) {
if (oSelectedItems{{ sListId }}.indexOf(oData.id) === -1)
{
$(oRow).select();
$(oRow).find('td:first-child input').prop('checked', true);
}
} else {
}
else
{
if (oSelectedItems{{ sListId }}.indexOf(oData.id) > -1)
{
$(oRow).select();

View File

@@ -11,9 +11,10 @@ var table{{ oUIBlock.GetId()|sanitize(constant('utils::ENUM_SANITIZATION_FILTER_
dom: "t",
"order": [],
{% if oUIBlock.GetOption("select_mode") is not empty %}
{% if oUIBlock.GetOption("select_mode") !="custom" %}
{% if oUIBlock.GetOption("select_mode") != "custom" %}
select: {
style: "{{ oUIBlock.GetOption("select_mode") }}"
style: "{% if oUIBlock.GetOption("select_mode") == "multiple" %}multi{% else %}single{% endif %}",
info: false
},
{% endif %}
columnDefs: [