Kirin hai 2 meses
pai
achega
0426b67123
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/services/user/UserServices.php

+ 1 - 1
app/services/user/UserServices.php

@@ -910,7 +910,7 @@ class UserServices extends BaseServices
             $edit['city'] = $data['city'];
             $edit['area'] = $data['area'];
             $edit['street'] = $data['street'];
-            $edit['is_shop'] = $data['is_shop'] ?? 0;
+            $edit['is_shop'] = $data['is_shop'] ?? $user['is_shop'];
             if (isset($data['extend_info']) && $data['extend_info']) $edit['extend_info'] = $data['extend_info'];
             if ($user['level'] != $data['level']) {
                 /** @var UserLevelServices $userLevelService */