Bug 31435: (follow-up) Make kohaTable calls consistent

Our calls to instantiate a kohaTable from JS were inconsistent in how
they pass table_settings where no table_settings exist.

This patch replaces empty arrays and empty hashrefs with a consistent
'null' being passed to ake it clear we don't have any settings to pass
yet.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-09-05 13:59:57 +01:00 committed by Tomas Cohen Arazi
parent 37c5cfb258
commit 6c7c93675e
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
4 changed files with 4 additions and 4 deletions

View file

@ -640,7 +640,7 @@
"searchable": false
}
]
}, {}, 1, {"basket.vendor_id": [% booksellerid | html %]});
}, null, 1, {"basket.vendor_id": [% booksellerid | html %]});
$(".previewData").on("click", function(e){
e.preventDefault();

View file

@ -383,7 +383,7 @@
$(row).addClass('debug');
}
},
});
}, null, 0);
$('#smtp_servers').on( "click", '.delete_server', function () {
var smtp_server_id = $(this).data('smtp-server-id');

View file

@ -460,7 +460,7 @@
"orderable": false
}
]
}, [], 1);
}, null, 1);
</script>
[% END %]

View file

@ -213,7 +213,7 @@
"orderable": false
},
]
});
}, null, 0);
$('#quotes').on( "click", '.delete_quote', function () {
var quote_id = decodeURIComponent($(this).data('quote-id'));