liugc před 1 rokem
rodič
revize
fcc5163fd1
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/workerapi/lists/MasterWorkerLists.php

+ 1 - 1
app/workerapi/lists/MasterWorkerLists.php

@@ -35,7 +35,7 @@ class MasterWorkerLists extends BaseWorkerDataLists implements ListsSearchInterf
                 $where[] = ['team_id','=',$team['id']];
                 $where[] = ['team_id','=',$team['id']];
             }
             }
         }
         }
-        if($this->params['work_id']){
+        if(isset($this->params['work_id']) && !empty($this->params['work_id'])){
             $where[] = ['team_role','=',2];
             $where[] = ['team_role','=',2];
             $where[] = ['work_status','=',0];
             $where[] = ['work_status','=',0];
             $where[] = ['audit_state','=',1];
             $where[] = ['audit_state','=',1];