From afffc06a64c1161c6c826a780c1578617941c232 Mon Sep 17 00:00:00 2001 From: "Harper, Glenn (CMG-Videa)" Date: Tue, 14 Jul 2015 13:57:48 -0400 Subject: [PATCH] Fix: server-side columns().search() call passes empty string to _fnFilterComplete Server-side issue, difficult to set up test page using publicly available sAjaxSource that handles DataTables-specific parameters --- js/api/api.search.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/api/api.search.js b/js/api/api.search.js index 4a874edfd..408aff24d 100644 --- a/js/api/api.search.js +++ b/js/api/api.search.js @@ -50,7 +50,12 @@ _api_registerPlural( "bCaseInsensitive": caseInsen === null ? true : caseInsen } ); - _fnFilterComplete( settings, settings.oPreviousSearch, 1 ); + _fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, { + "sSearch": input+"", + "bRegex": regex === null ? false : regex, + "bSmart": smart === null ? true : smart, + "bCaseInsensitive": caseInsen === null ? true : caseInsen + } ), 1 ); } ); } );