@@ -, +, @@ --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ a/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -587,10 +587,14 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { var part = {}; var attr = attributes[i]; let criteria = options.criteria; - if ( value.match(/^\^(.*)\$$/) ) { + if ( value !== null && value.match(/^\^(.*)\$$/) ) { value = value.replace(/^\^/, '').replace(/\$$/, ''); criteria = "exact"; } + if ( value === 'special:undefined' ) { + value = null; + criteria = "exact"; + } part[!attr.includes('.')?'me.'+attr:attr] = criteria === 'exact' ? value : {like: (['contains', 'ends_with'].indexOf(criteria) !== -1?'%':'') + value + (['contains', 'starts_with'].indexOf(criteria) !== -1?'%':'')}; --