From e9ad7984319c5e7f210f9f1d1745d2cc24c918bd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 1 Mar 2023 10:55:22 +0100 Subject: [PATCH] Fix missing url --- htdocs/public/partnership/new.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/public/partnership/new.php b/htdocs/public/partnership/new.php index dea912e0653..30cf17ab718 100644 --- a/htdocs/public/partnership/new.php +++ b/htdocs/public/partnership/new.php @@ -264,6 +264,7 @@ if (empty($reshook) && $action == 'add') { $company->zip = GETPOST('zipcode'); $company->town = GETPOST('town'); $company->email = GETPOST('email'); + $company->url = GETPOST('url'); $company->country_id = GETPOST('country_id', 'int'); $company->state_id = GETPOST('state_id', 'int'); $company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname')); @@ -297,12 +298,16 @@ if (empty($reshook) && $action == 'add') { if (empty($company->email)) { $company->email = GETPOST('email'); } + if (empty($company->url)) { + $company->url = GETPOST('url'); + } if (empty($company->state_id)) { $company->state_id = GETPOST('state_id', 'int'); } if (empty($company->name_alias)) { $company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname')); } + $company->update(0); } @@ -610,6 +615,9 @@ print ''.$langs->trans("Firstname").' *< print ''.$langs->trans("Email").' *'; //print img_picto('', 'email', 'class="pictofixedwidth"'); print ''."\n"; +// Url +print ''.$langs->trans("Url").' *'; +print ''."\n"; // Address print ''.$langs->trans("Address").''."\n"; print ''."\n";