Skip to content

Commit

Permalink
Add missing delimiter, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sonja committed Dec 5, 2020
1 parent d1cd2a7 commit 55b8f7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "texnixe/similar",
"description": "Find similar pages or files based on similarities between fields",
"version": "1.0.2",
"version": "1.0.3",
"type": "kirby-plugin",
"license": "MIT",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* Kirby 3 Similar Plugin
*
* @version 1.0.2
* @version 1.0.3
* @author Sonja Broda <hello@sonjabroda.com>
* @copyright Sonja Broda <hello@sonjabroda.com>
* @link https://github.com/texnixe/kirby3-similar
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Kirby 3 Similar plugin",
"author": "Sonja Broda <sonja@texniq.de>",
"license": "MIT",
"version": "1.0.2",
"version": "1.0.3",
"repository": {
"type": "git",
"url": "https://github.com/texnixe/kirby3-similar"
Expand Down
2 changes: 1 addition & 1 deletion src/Similar.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function data($basis, $options = [])
//$searchField = null;
foreach($fields as $field => $factor) {
// only include fields that have values
$values = $basis->{$field}()->split(',');
$values = $basis->{$field}()->split($delimiter);
if(count($values) > 0) {
$searchItems[$field][$field] = $values;
$searchItems[$field]['factor'] = $factor;
Expand Down

0 comments on commit 55b8f7d

Please sign in to comment.