xxxrrrdddd 2 gadi atpakaļ
vecāks
revīzija
e3a9cdd69a
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      application/admin/controller/TakeCash.php

+ 4 - 1
application/admin/controller/TakeCash.php

@@ -62,7 +62,10 @@ class TakeCash extends Backend
 
             foreach ($list as $row) {
                 
-                $row->getRelation('user')->visible(['nickname']);
+                $row->getRelation('user')->visible(['nickname','name']);
+                if(empty($row['user']['nickname'])){
+                    $row['user']['nickname']=$row['user']['name']??'';
+                }
             }
 
             $result = array("total" => $list->total(), "rows" => $list->items());