X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/35e58ea1056480418d36b08a98f288d583805b23..refs/tags/v0.5.1:/lib/notestorage.php diff --git a/lib/notestorage.php b/lib/notestorage.php index 621d120..93311e4 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -287,8 +287,8 @@ class NoteStorage $keywordGroups['NOT'] = array(); } - $sqlTplAnd = ' AND (note_title LIKE ? OR note_tags LIKE ? OR note_content LIKE ?)'; - $sqlTplNot = ' AND NOT (note_title LIKE ? OR note_tags LIKE ? OR note_content LIKE ?)'; + $sqlTplAnd = ' AND (note_title ILIKE ? OR note_tags ILIKE ? OR note_content ILIKE ?)'; + $sqlTplNot = ' AND NOT (note_title ILIKE ? OR note_tags ILIKE ? OR note_content ILIKE ?)'; $arData = array( $this->username ); @@ -432,7 +432,14 @@ class NoteStorage ) ) ), - 'href' => null,//FIXME + 'href' => $this->urlGen->getAbsoluteURL( + $this->urlGen->linkToRoute( + 'grauphel.gui.note', + array( + 'guid' => $row['note_guid'] + ) + ) + ), ), 'title' => $row['note_title'], );