Merge pull request #977 from openclassify/dia

#3392 if no email do not show in admin
This commit is contained in:
Fatih Alp 2021-03-02 18:09:34 +03:00 committed by GitHub
commit 97306a75dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,6 @@
{{ addBlock('ads-list/row-bottom')|raw }}
{# <div class="category-tabs"></div>#}
</div>
</div>
</div>

View File

@ -1,5 +1,6 @@
<?php namespace Visiosoft\DefaultadminTheme\Listener;
use Anomaly\Streams\Platform\Entry\EntryModel;
use Anomaly\Streams\Platform\Ui\Table\Component\Header\Header;
use Illuminate\Support\Collection;
use Anomaly\Streams\Platform\Ui\Table\Component\Filter\Type\SearchFilter;
@ -53,7 +54,11 @@ class AddGsmFilter
$builder->setColumns([
'first_name',
'last_name',
'email',
'email' => [
'value' => function (EntryModel $entry) {
return str_ends_with($entry->email, '@example.com') ? '' : $entry->email;
}
],
'gsm_phone',
'created_at' => [
'value' => 'entry.created_at'