Fix duplication of tags when filtering contacts (#1341)

This commit is contained in:
Danny
2018-05-16 17:57:18 -05:00
committed by Régis Freyd
parent 4336c7efc2
commit 8bbe1ce591
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class ContactsController extends Controller
->where('account_id', auth()->user()->account_id)
->get();
$tags = $tags->concat($tag);
if (! ($tags->contains($tag[0]))) {
$tags = $tags->concat($tag);
}
$url = $url.'tag'.$count.'='.$tag[0]->name_slug.'&';