splittingred / SimpleSearch

A simple search component for MODx Revolution
http://docs.modxcms.com/display/ADDON/SimpleSearch
36 stars 36 forks source link

ids and idType documents does not work. #96

Open Oetzie opened 6 years ago

Oetzie commented 6 years ago

When you have set the ids and idType to 'documents' you will get a Database error. This because ids wont be converted to an array.

I have fixed it by added the following code to the 'processIds' function in the simplesearchdriver.class.php.

case 'documents': $ids = array_unique(explode(',', $ids)); sort($ids); break;