Skip to content

Instantly share code, notes, and snippets.

@vsguts
Created May 6, 2016 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsguts/bcc3a8ffd6725d89e87fdd82cf539c07 to your computer and use it in GitHub Desktop.
Save vsguts/bcc3a8ffd6725d89e87fdd82cf539c07 to your computer and use it in GitHub Desktop.
diff --git a/app/functions/fn.companies.php b/app/functions/fn.companies.php
index 91c5225..8e9d18f 100644
--- a/app/functions/fn.companies.php
+++ b/app/functions/fn.companies.php
@@ -1318,6 +1318,9 @@ function fn_create_company_admin($company_data, $fields = '', $notify = false)
$user['b_firstname'] = $user['s_firstname'] = $user['firstname'];
$user['lastname'] = (!empty($company_data['admin_lastname'])) ? $company_data['admin_lastname'] : '';
$user['b_lastname'] = $user['s_lastname'] = $user['lastname'];
+ $user['b_phone'] = $user['s_phone'] = $user['phone'] = $company_data['phone'];
+ $user['fax'] = $company_data['fax'];
+ $user['url'] = $company_data['url'];
$user['b_address'] = $user['s_address'] = $company_data['address'];
$user['b_city'] = $user['s_city'] = $company_data['city'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment