Expand tag report #1106

This commit is contained in:
James Cole
2018-01-12 21:02:27 +01:00
parent 04de4c9b36
commit cbeaf8e16a
2 changed files with 60 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ class TagList implements BinderInterface
$list = [];
$incoming = explode(',', $value);
foreach ($incoming as $entry) {
$list[] = trim($entry);
$list[] = strtolower(trim($entry));
}
$list = array_unique($list);
if (count($list) === 0) {
@@ -57,7 +57,7 @@ class TagList implements BinderInterface
$collection = $allTags->filter(
function (Tag $tag) use ($list) {
return in_array($tag->tag, $list);
return in_array(strtolower($tag->tag), $list);
}
);