Commit 45ecd8d6 authored by anon's avatar anon

Fixed #1916630: ->serach_string should be ->search_string

parent 7aab8b26
......@@ -160,7 +160,7 @@ class LinkitPluginEntity extends LinkitPlugin {
// Add the search condition to the query object.
$this->query->propertyCondition($this->entity_field_label,
'%' . db_like($this->serach_string) . '%', 'LIKE')
'%' . db_like($this->search_string) . '%', 'LIKE')
->addTag('linkit_entity_autocomplete')
->addTag('linkit_' . $this->plugin['entity_type'] . '_autocomplete');
......@@ -231,7 +231,7 @@ class LinkitPluginEntity extends LinkitPlugin {
// Get supported tokens for the entity type.
$tokens = linkit_extract_tokens($this->plugin['entity_type']);
// A short description in within the serach result for each row.
// A short description in within the search result for each row.
$form[$this->plugin['name']]['result_description'] = array(
'#title' => t('Result format'),
'#type' => 'textfield',
......
......@@ -58,10 +58,10 @@ abstract class LinkitPlugin implements LinkitPluginInterface {
/**
* Set the search string.
*
* @param string $serach_string.
* @param string $search_string.
*/
function setSearchString($serach_string) {
$this->serach_string = $serach_string;
function setSearchString($search_string) {
$this->search_string = $search_string;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment