Skip to content

Commit

Permalink
Merge pull request #171 from Wikidata-lib/followup
Browse files Browse the repository at this point in the history
Followup compatibility fix for EntitySelector
  • Loading branch information
JonasKress committed Aug 3, 2016
2 parents dab96c4 + e1aec43 commit 612463f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PropertySuggester.php
Expand Up @@ -9,7 +9,7 @@
return;
}

define( 'PropertySuggester_VERSION', '3.1.0' );
define( 'PropertySuggester_VERSION', '3.1.1' );

if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
Expand Down
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -45,6 +45,9 @@ generate this data from a wikidata dump.

## Release notes

### 3.1.1 (2016-08-03)
* Follow up fix for entity suggester, update method call in EntitySuggester.

### 3.1.0 (2016-08-03)
* Adapted entity suggester for changes in Wikibase.

Expand Down
4 changes: 2 additions & 2 deletions modules/ext.PropertySuggester.EntitySelector.js
Expand Up @@ -34,7 +34,7 @@
self.element.on( 'focus', focusHandler );
},

_oldGetData: $.wikibase.entityselector.prototype._getData,
_oldGetSearchApiParameters: $.wikibase.entityselector.prototype._getSearchApiParameters,

/**
*
Expand All @@ -45,7 +45,7 @@
var self = this;

if( !self._useSuggester() ) {
return self._oldGetData( term )
return self._oldGetSearchApiParameters( term )
} else {
var data = {
action: 'wbsgetsuggestions',
Expand Down

0 comments on commit 612463f

Please sign in to comment.