Kirin il y a 2 mois
Parent
commit
0426b67123
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 */