Search result warnings do not use phrases properly

Kirby

Well-known member
Affected version
2.3.7
Steps to reproduce
  1. Setup XenForo to use MySQL Full Text search
  2. Setup 2 Languages, English and German
  3. While using German, perform a search with two keywords - one which does produce results and one which is too short
  4. When the search results page is shown switch language to English
Expected Result
The warning following_words_were_not_included_in_your_search_x is displayed in english

Actual Result
The warning following_words_were_not_included_in_your_search_x is still displayed in german

Suggested Fix
Use JSON instead of JSON_ARRAYand serialize phrases as ['phrasename', ['param1' => 'param1Value']] instead of storing them rendered.
 
Back
Top Bottom