* fix bug for get report by dept.

This commit is contained in:
王怡栋
2021-11-08 13:23:47 +08:00
parent 19c88ede74
commit e257dc4adf
+1 -1
View File
@@ -27,7 +27,7 @@ class reportsEntry extends entry
$accounts = array();
if($account) $accounts = array($account => $account);
if(empty($accounts) and $dept) $accounts = $this->loadModel('dept')->getDeptUserPairs($dept);
if(empty($accounts) and $dept) $accounts = array_keys($this->loadModel('dept')->getDeptUserPairs($dept));
$fields = explode(',', strtolower($fields));
$report = array();