Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php |
— | — | @@ -118,10 +118,11 @@ |
119 | 119 | if ( $search != '' ) { |
120 | 120 | if ( $query == 'transaction' ) |
121 | 121 | $searchCondition = " AND $rowText LIKE " . $dbr->addQuotes( "%$search%" ); |
| 122 | + else if ( $query == 'class' ) |
| 123 | + $searchCondition = " AND $rowText LIKE " . $dbr->addQuotes( "$search%" ); |
122 | 124 | else if ( $query == 'language' ) |
123 | 125 | $searchCondition = " HAVING $rowText LIKE " . $dbr->addQuotes( "$search%" ); |
124 | 126 | else if ( $query == 'relation-type' or |
125 | | - $query == 'class' or |
126 | 127 | $query == 'option-attribute' or |
127 | 128 | $query == 'translated-text-attribute' or |
128 | 129 | $query == 'text-attribute' or |