WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => Modules => Topic started by: CodeALot on February 25, 2020, 06:24:13 PM

Title: OneForAll - WB Search is not looking inside OFA items
Post by: CodeALot 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? :)
Title: Re: OneForAll - WB Search is not looking inside OFA items
Post by: CodeALot 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!
Title: Re: OneForAll - WB Search is not looking inside OFA items
Post by: CodeALot on February 28, 2020, 12:25:06 PM
I guess it's a bug, and one that can't be solved...  :oops:
Title: Re: OneForAll - WB Search is not looking inside OFA items
Post by: dbs 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.
Title: Re: OneForAll - WB Search is not looking inside OFA items
Post by: CodeALot on February 28, 2020, 08:45:48 PM
You are a hero. Thank you very much!