]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Behaviour change: search in tags with LIKE match (and not exact match)
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 May 2009 11:07:52 +0000 (11:07 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Tue, 19 May 2009 11:07:52 +0000 (11:07 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@323 b3834d28-1941-0410-a4f8-b48e95affb8f

services/bookmarkservice.php

index f41df538b3e9b75daac4ff6c7c7cef3ef5a3cb1b..355a4cd73dd5077503e65ed631fc98c4bef5046e 100644 (file)
@@ -384,10 +384,10 @@ class BookmarkService {
                        for ($i = 0; $i < count($aTerms); $i++) {
                                $query_4 .= ' AND (B.bTitle LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
                                $query_4 .= ' OR B.bDescription LIKE "%'. $this->db->sql_escape($aTerms[$i]) .'%"';
-                               $query_4 .= ' OR B.bPrivateNote = "'. $this->db->sql_escape($aTerms[$i]) .'"'; //warning : search in private notes of everybody but private notes won't appear if not allowed.
+                               $query_4 .= ' OR B.bPrivateNote LIKE "'. $this->db->sql_escape($aTerms[$i]) .'%"'; //warning : search in private notes of everybody but private notes won't appear if not allowed.
                                $query_4 .= ' OR U.username = "'. $this->db->sql_escape($aTerms[$i]) .'"'; //exact match for username                           
                                if ($dotags) {
-                                       $query_4 .= ' OR T.tag = "'. $this->db->sql_escape($aTerms[$i]) .'"';
+                                       $query_4 .= ' OR T.tag LIKE "'. $this->db->sql_escape($aTerms[$i]) .'%"';
                                }
                                $query_4 .= ')';
                        }