Commit 5c4fcced by Phạm Văn Đoan

fix lỗi tìm kiếm tên bài hát có chữ hoa là nguyên âm

parent 9dd00d3a
......@@ -136,6 +136,7 @@ class Track_model extends CI_Model
$this->db->like('title', $name, 'both');
$this->db->or_like('description', $name, 'both');
$this->db->or_like('slug', $name, 'both');
$this->db->or_like('slug', MyHelper::genSlug($name), 'both');
$this->db->or_like('tag', $name, 'both');
}
if ($fBySinger == 1) {
......@@ -190,6 +191,7 @@ class Track_model extends CI_Model
$this->db->like('tracks.title', $name, 'both');
$this->db->or_like('tracks.description', $name, 'both');
$this->db->or_like('tracks.slug', $name, 'both');
$this->db->or_like('tracks.slug', MyHelper::genSlug($name), 'both');
$this->db->or_like('tracks.tag', $name, 'both');
}
if ($fBySinger == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment