Context Sensitive List Search Broken by August 2015 CU

SharePoint Libraries include a search box for that specific library, e.g.:


Prior to the August 2015 Cumulative Update, it was possible to find an item within the specific folder of a library. In the above example, if you went into Subfolder and then searched for an item, the search would be limited to items within that subfolder. After the August 2015 CU has been applied, the search box is no longer context sensitive. All items will be returned from the library that match the specific search term.

This is due to a change in the file INPLVIEW.js (and INPLVIEW.debug.js) where a function call was dropped which prevents the context sensitive search from working. As a temporary workaround, it is possible to modify these files to get this search functionality to it’s original state.

The first thing that needs to be done is to make copies of INPLVIEW.js and INPLVIEW.debug.js, which are located in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\. These copies must be restored prior to installing a SharePoint patch, otherwise the files may not be updated by a patch.

Next, in INPLVIEW.debug.js, open the file with a text editor and go to line 3058. This line will be within the function named “HandleRefreshViewInternal”. Line 3058 should not have any text. Add the text:

For INPLVIEW.js, find the text  var b=c.ctx.queryString,a=c.ctx;. Immediately after that text, add:

For INPLVIEW.debug.js, the entire function will look like:

And for INPLVIEW.js:

There is a PSS case open for this issue to revert the change back to pre-August 2015 CU behavior.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.