Ljonka has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/331964 )

Change subject: Use Blob value for autocomplete, actualy Hash value are cutted 
on long entries
......................................................................

Use Blob value for autocomplete, actualy Hash value are cutted on long entries

Change-Id: I3dd47efd36ad3bc8823d3ed6cd619bf774979c08
---
M includes/PF_AutocompleteAPI.php
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageForms 
refs/changes/64/331964/1

diff --git a/includes/PF_AutocompleteAPI.php b/includes/PF_AutocompleteAPI.php
index 740592d..1a6b0f1 100644
--- a/includes/PF_AutocompleteAPI.php
+++ b/includes/PF_AutocompleteAPI.php
@@ -192,7 +192,7 @@
                        if ( !is_null( $basePropertyName ) ) {
                                $cacheKeyString .= ',' . $basePropertyName . 
',' . $baseValue;
                        }
-                       $cacheKey = wfMemcKey( 'pf-autocomplete' , md5( 
$cacheKeyString ) );            
+                       $cacheKey = wfMemcKey( 'pf-autocomplete' , md5( 
$cacheKeyString ) );
                        $values = $cache->get( $cacheKey );
 
                        if ( !empty( $values ) ){
@@ -213,7 +213,7 @@
                        $fromClause = "$propsTable p JOIN $idsTable p_ids ON 
p.p_id = p_ids.smw_id JOIN $idsTable o_ids ON p.o_id = o_ids.smw_id";
                } else {
                        if ( $smwgDefaultStore === 'SMWSQLStore3' ) {
-                               $valueField = 'p.o_hash';
+                               $valueField = 'p.o_blob';
                                $idsTable = $db->tableName( 'smw_object_ids' );
                                $propsTable = $db->tableName( 'smw_di_blob' );
                        } else {
@@ -244,7 +244,7 @@
                                $conditions['base_o_ids.smw_title'] = 
$baseValue;
                        } else {
                                if ( $smwgDefaultStore === 'SMWSQLStore3' ) {
-                                       $baseValueField = 'p_base.o_hash';
+                                       $baseValueField = 'p_base.o_blob';
                                        $idsTable = $db->tableName( 
'smw_object_ids' );
                                        $propsTable = $db->tableName( 
'smw_di_blob' );
                                } else {
@@ -299,7 +299,7 @@
                        if ( !is_null( $baseCargoTable ) ) {
                                $cacheKeyString .= '|' . $baseCargoTable . '|' 
. $baseCargoField . '|' . $baseValue;
                        }
-                       $cacheKey = wfMemcKey( 'pf-autocomplete' , md5( 
$cacheKeyString ) );            
+                       $cacheKey = wfMemcKey( 'pf-autocomplete' , md5( 
$cacheKeyString ) );
                        $values = $cache->get( $cacheKey );
 
                        if ( !empty( $values ) ){

-- 
To view, visit https://gerrit.wikimedia.org/r/331964
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3dd47efd36ad3bc8823d3ed6cd619bf774979c08
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageForms
Gerrit-Branch: master
Gerrit-Owner: Ljonka <l.verhovs...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to