Author Topic: OneForAll - WB Search is not looking inside OFA items  (Read 487 times)

Offline CodeALot

  • Posts: 488
  • Gender: Male
OneForAll - WB Search is not looking inside OFA items
« on: February 25, 2020, 06:24:13 PM »
WB 2.12.2 r379
OneForAll 2.0.2.23


The default Search-functionality appears to look through mod_oneforall_items. It will find words used in the title of an OFA item.
However, even though the OFA SEARCH.PHP declares mod_oneforall_item_fields to be searched as well, WB's Search seems to ignore that. It will not find any text inside an OFA-item.

Is this a bug or is there something I overlooked? :)

Offline CodeALot

  • Posts: 488
  • Gender: Male
Re: OneForAll - WB Search is not looking inside OFA items
« Reply #1 on: February 26, 2020, 10:32:44 AM »
Added info: Yes I did declare "oneforall" as one of the modules that has to be searched. If the search string is in the TITLE of an OFA-item, it will find it. But not the words in the fields of the OFA record. Any help is appreciated!

Offline CodeALot

  • Posts: 488
  • Gender: Male
Re: OneForAll - WB Search is not looking inside OFA items
« Reply #2 on: February 28, 2020, 12:25:06 PM »
I guess it's a bug, and one that can't be solved...  :oops:

Offline dbs

  • Betatester
  • **
  • Posts: 8401
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: OneForAll - WB Search is not looking inside OFA items
« Reply #3 on: February 28, 2020, 08:07:37 PM »
Hi, try this: ofa > search.php line 79

change
Code: [Select]
.'WHERE `item_id` = \'{'.$res['item_id'].'}\' 'to
Code: [Select]
.'WHERE `item_id` = '.$res['item_id'].' '
In my tests i could find searched words in text, textarea and wysiwyg.

Offline CodeALot

  • Posts: 488
  • Gender: Male
Re: OneForAll - WB Search is not looking inside OFA items
« Reply #4 on: February 28, 2020, 08:45:48 PM »
You are a hero. Thank you very much!

 

postern-length