Skip to content

Commit

Permalink
close #2023 Changed: Add all report date filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed May 5, 2021
1 parent cc35956 commit 535da27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/Abstracts/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Abstracts;

use App\Traits\DateTime;
use App\Traits\Tenants;
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
use Illuminate\Database\Eloquent\Model as Eloquent;
Expand All @@ -11,7 +12,7 @@

abstract class Model extends Eloquent
{
use Cachable, SearchString, SoftDeletes, Sortable, Tenants;
use Cachable, DateTime, SearchString, SoftDeletes, Sortable, Tenants;

protected $tenantable = true;

Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/Report/AddDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function handleFilterShowing(FilterShowing $event)
*/
public function handleFilterApplying(FilterApplying $event)
{
if ($this->skipThisClass($event)) {
if (empty($event->args['date_field'])) {
return;
}

Expand Down

0 comments on commit 535da27

Please sign in to comment.