]> git.agnieray.net Git - galette.git/commitdiff
Fix histroy filter develop
authorJohan Cwiklinski <johan@x-tnd.be>
Fri, 10 May 2024 06:23:10 +0000 (08:23 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 10 May 2024 06:23:10 +0000 (08:23 +0200)
galette/lib/Galette/Core/History.php

index 6ac002fe089a1cf23773d66d6ec110db89484277..1019f46c12b43e93f31289c927bb9f0326020033 100644 (file)
@@ -212,6 +212,7 @@ class History
      */
     private function buildLists(Select $select): void
     {
+        $this->users = [];
         try {
             $usersSelect = clone $select;
             $usersSelect->reset($usersSelect::COLUMNS);
@@ -312,8 +313,7 @@ class History
                 );
             }
 
-            //@phpstan-ignore-next-line
-            if ($this->filters->user_filter != null) {
+            if ($this->filters->user_filter !== null && $this->filters->user_filter != '0') {
                 if ($this->filters->user_filter === _T('None')) {
                     $this->filters->user_filter = '';
                 }
@@ -323,8 +323,7 @@ class History
                 );
             }
 
-            //@phpstan-ignore-next-line
-            if ($this->filters->action_filter != null && $this->filters->action_filter != '0') {
+            if ($this->filters->action_filter !== null && $this->filters->action_filter != '0') {
                 $select->where->equalTo(
                     'action_log',
                     $this->filters->action_filter