r57592 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57591‎ | r57592 | r57593 >
Date:21:17, 9 October 2009
Author:kipcool
Status:deferred
Tags:
Comment:
fixing suggestion for classes when the first letters of the class are typed.
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php
@@ -118,10 +118,11 @@
119119 if ( $search != '' ) {
120120 if ( $query == 'transaction' )
121121 $searchCondition = " AND $rowText LIKE " . $dbr->addQuotes( "%$search%" );
 122+ else if ( $query == 'class' )
 123+ $searchCondition = " AND $rowText LIKE " . $dbr->addQuotes( "$search%" );
122124 else if ( $query == 'language' )
123125 $searchCondition = " HAVING $rowText LIKE " . $dbr->addQuotes( "$search%" );
124126 else if ( $query == 'relation-type' or
125 - $query == 'class' or
126127 $query == 'option-attribute' or
127128 $query == 'translated-text-attribute' or
128129 $query == 'text-attribute' or

Status & tagging log