瀏覽代碼

fix preferences ID avec compte famille

Vincent 11 月之前
父節點
當前提交
2ff9238166
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      src/Service/Access/AccessProfileCreator.php

+ 4 - 3
src/Service/Access/AccessProfileCreator.php

@@ -86,7 +86,9 @@ class AccessProfileCreator
             ->setIsPayor(
                 !$access->getBillingPayers()->isEmpty()
                 || ($access->getBillingReceivers()->isEmpty() && $access->getChildren()->isEmpty() && !$access->getAccessIntangibles()->isEmpty())
-            );
+            )
+            ->setPreferencesId($access->getPreferences()->getId())
+        ;
     }
 
     /**
@@ -108,8 +110,7 @@ class AccessProfileCreator
             ->setIsSuperAdminAccess($access->getSuperAdminAccess())
             ->setOrganization(
                 $this->organizationProfileCreator->createLightOrganizationProfile($access->getOrganization())
-            )
-            ->setPreferencesId($access->getPreferences()->getId());
+            );
     }
 
     /**