This issue follows #4 in #1637794: Add default sort for when NO search terms are present, and when they are.

In the case where we display a seach API results without any parameters, $params['search_api_views_fulltext'] won't be set, leading to this notice on the page :

Notice: Undefined index: search_api_views_fulltext in search_api_sorts_block_search_sorts_view() (line 165 of /xxx/modules/contrib/search_api_sorts/search_api_sorts.module)

Comments

haza’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Here's a patch for that.

Anonymous’s picture

Thanks, will have a look at it!

epieddy’s picture

The patch in #1 seems to work.

Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.