Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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