Make prefs feed search case-insensitive.
Previously the search query had to match lower title or feed_url (i.e. searching w/ uppercase wouldn't match).
This commit is contained in:
parent
992e9cd9e3
commit
23b4152c9e
|
@ -82,7 +82,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
->order_by_asc('title');
|
->order_by_asc('title');
|
||||||
|
|
||||||
if ($search) {
|
if ($search) {
|
||||||
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE ?)', ["%$search%", "%$search%"]);
|
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE LOWER(?))', ["%$search%", "%$search%"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($feeds_obj->find_many() as $feed) {
|
foreach ($feeds_obj->find_many() as $feed) {
|
||||||
|
@ -253,7 +253,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
->order_by_asc('title');
|
->order_by_asc('title');
|
||||||
|
|
||||||
if ($search) {
|
if ($search) {
|
||||||
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE ?)', ["%$search%", "%$search%"]);
|
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE LOWER(?))', ["%$search%", "%$search%"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($feeds_obj->find_many() as $feed) {
|
foreach ($feeds_obj->find_many() as $feed) {
|
||||||
|
@ -289,7 +289,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||||
->order_by_asc('title');
|
->order_by_asc('title');
|
||||||
|
|
||||||
if ($search) {
|
if ($search) {
|
||||||
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE ?)', ["%$search%", "%$search%"]);
|
$feeds_obj->where_raw('(LOWER(title) LIKE ? OR LOWER(feed_url) LIKE LOWER(?))', ["%$search%", "%$search%"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($feeds_obj->find_many() as $feed) {
|
foreach ($feeds_obj->find_many() as $feed) {
|
||||||
|
|
Loading…
Reference in New Issue