CMS MADE SIMPLE FORGE

ListItExtended

 

[#8371] search_* to include LIKE if a % is found in the search term

avatar
Created By: Nik (NikNak)
Date Submitted: 2012-09-10 10:29

Assigned To: Tapio Löytty (Stikki)
Resolution: None
State: Open
Summary:
search_* to include LIKE if a % is found in the search term
Detailed Description:
Hi again - this is just a thought 

I've used the search_* to find certain date ranges - like search_date="2012%"

on line 208 of action.default.php I have modded this:
if (strpos($thisvalue,'%').'' !=''){
$find_type = 'LIKE';} 
else {
$find_type = '=';
} 
$thisor[] = 'C.value '.$find_type.' ?'; 

Thanks again

Nik

History

Comments
avatar
Date: 2012-09-10 10:49
Posted By: Tapio Löytty (Stikki)

It's been discusses and probably we change current search_* to filter_*, piss
few ppl in process and add search_* for alike, but i have more important
objectives in list than this at the moment, so you gotta wait.

-Stikki-
      
avatar
Date: 2012-09-10 10:59
Posted By: Nik (NikNak)

I can wait :-)
      
Updates

Updated: 2012-09-10 10:49
resolution_id: => 5