X-Git-Url: https://xp-dev.com/git/namibia/blobdiff_plain/bb2698c383a0585633180c7996aba816667c9e6d..9aa85c56e9cd4cb70d6d651b0e2fb8e9d40c15ff:/module/User/src/User/Service/Registration.php diff --git a/module/User/src/User/Service/Registration.php b/module/User/src/User/Service/Registration.php index 3ee232a..4b33854 100644 --- a/module/User/src/User/Service/Registration.php +++ b/module/User/src/User/Service/Registration.php @@ -23,30 +23,31 @@ class Registration extends \User\DataBin\Registration { $contactService = new \Person\Service\Contact(); $contactService->setWorkflow(new \Person\Workflow()); - $companyService = new \Company\Service\Company(); - $companyService->setWorkflow(new \Company\Workflow()); +// $companyService = new \Company\Service\Company(); +// $companyService->setWorkflow(new \Company\Workflow()); $profileService = new \User\Service\Profile(); $profileService->setWorkflow(new \User\Workflow()); //\Utility\Debug::errorLog('create contact', $session->Contact); $contact = $contactService->create($session->Contact); $session->Company['contact'] = $contact->id; - if (isset($session->BillingContact)) - { - //\Utility\Debug::errorLog('create billing contact', $session->BillingContact); - $billingContact = $contactService->create($session->BillingContact); - $session->Company['contbillingContactact'] = $billingContact->id; - } +// if (isset($session->BillingContact)) +// { +// //\Utility\Debug::errorLog('create billing contact', $session->BillingContact); +// $billingContact = $contactService->create($session->BillingContact); +// $session->Company['contbillingContactact'] = $billingContact->id; +// } //\Utility\Debug::errorLog('create company', $session->Company); - $company = $companyService->create($session->Company); - $session->Profile['company'] = $company->id; - if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8) - { - $session->Profile['permissions'] = 5; - } - //\Utility\Debug::errorLog('create profile', $session->Profile); +// $company = $companyService->create($session->Company); +// $session->Profile['company'] = $company->id; +// if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8) +// { +// $session->Profile['permissions'] = 5; +// } + $session->Profile['permissions'] = 12; + \Utility\Debug::errorLog('create profile', $session->Profile); $profile = $profileService->create($session->Profile); - $toCompanyId = $company->id; +// $toCompanyId = ''; $toProfileId = $profile->id; $email = $profile->email; $mobile = null;