Git Repository Public Repository

namibia

URLs

Copy to Clipboard

Diff Revisions fabc96 ... vs 9aa85c ... for module/User/src/User/Service/Registration.php

Diff revisions: vs.
  @@ -23,30 +23,31 @@
23 23 {
24 24 $contactService = new \Person\Service\Contact();
25 25 $contactService->setWorkflow(new \Person\Workflow());
26 - $companyService = new \Company\Service\Company();
27 - $companyService->setWorkflow(new \Company\Workflow());
26 + // $companyService = new \Company\Service\Company();
27 + // $companyService->setWorkflow(new \Company\Workflow());
28 28 $profileService = new \User\Service\Profile();
29 29 $profileService->setWorkflow(new \User\Workflow());
30 30 //\Utility\Debug::errorLog('create contact', $session->Contact);
31 31 $contact = $contactService->create($session->Contact);
32 32 $session->Company['contact'] = $contact->id;
33 - if (isset($session->BillingContact))
34 - {
35 - //\Utility\Debug::errorLog('create billing contact', $session->BillingContact);
36 - $billingContact = $contactService->create($session->BillingContact);
37 - $session->Company['contbillingContactact'] = $billingContact->id;
38 - }
33 + // if (isset($session->BillingContact))
34 + // {
35 + // //\Utility\Debug::errorLog('create billing contact', $session->BillingContact);
36 + // $billingContact = $contactService->create($session->BillingContact);
37 + // $session->Company['contbillingContactact'] = $billingContact->id;
38 + // }
39 39 //\Utility\Debug::errorLog('create company', $session->Company);
40 - $company = $companyService->create($session->Company);
41 - $session->Profile['company'] = $company->id;
42 - if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8)
43 - {
44 - $session->Profile['permissions'] = 5;
45 - }
46 - //\Utility\Debug::errorLog('create profile', $session->Profile);
40 + // $company = $companyService->create($session->Company);
41 + // $session->Profile['company'] = $company->id;
42 + // if ($session->Profile['permissions'] < 5 || $session->Profile['permissions'] > 8)
43 + // {
44 + // $session->Profile['permissions'] = 5;
45 + // }
46 + $session->Profile['permissions'] = 12;
47 + \Utility\Debug::errorLog('create profile', $session->Profile);
47 48 $profile = $profileService->create($session->Profile);
48 49
49 - $toCompanyId = $company->id;
50 + // $toCompanyId = '';
50 51 $toProfileId = $profile->id;
51 52 $email = $profile->email;
52 53 $mobile = null;