Fix missing url
This commit is contained in:
parent
77ff849892
commit
e9ad798431
@ -264,6 +264,7 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
$company->zip = GETPOST('zipcode');
|
$company->zip = GETPOST('zipcode');
|
||||||
$company->town = GETPOST('town');
|
$company->town = GETPOST('town');
|
||||||
$company->email = GETPOST('email');
|
$company->email = GETPOST('email');
|
||||||
|
$company->url = GETPOST('url');
|
||||||
$company->country_id = GETPOST('country_id', 'int');
|
$company->country_id = GETPOST('country_id', 'int');
|
||||||
$company->state_id = GETPOST('state_id', 'int');
|
$company->state_id = GETPOST('state_id', 'int');
|
||||||
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
||||||
@ -297,12 +298,16 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
if (empty($company->email)) {
|
if (empty($company->email)) {
|
||||||
$company->email = GETPOST('email');
|
$company->email = GETPOST('email');
|
||||||
}
|
}
|
||||||
|
if (empty($company->url)) {
|
||||||
|
$company->url = GETPOST('url');
|
||||||
|
}
|
||||||
if (empty($company->state_id)) {
|
if (empty($company->state_id)) {
|
||||||
$company->state_id = GETPOST('state_id', 'int');
|
$company->state_id = GETPOST('state_id', 'int');
|
||||||
}
|
}
|
||||||
if (empty($company->name_alias)) {
|
if (empty($company->name_alias)) {
|
||||||
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
$company->name_alias = dolGetFirstLastname(GETPOST('firstname'), GETPOST('lastname'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$company->update(0);
|
$company->update(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -610,6 +615,9 @@ print '<tr><td>'.$langs->trans("Firstname").' <span style="color: red">*</span><
|
|||||||
print '<tr><td>'.$langs->trans("Email").' <span style="color:red;">*</span></td><td>';
|
print '<tr><td>'.$langs->trans("Email").' <span style="color:red;">*</span></td><td>';
|
||||||
//print img_picto('', 'email', 'class="pictofixedwidth"');
|
//print img_picto('', 'email', 'class="pictofixedwidth"');
|
||||||
print '<input type="text" name="email" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('email')).'"></td></tr>'."\n";
|
print '<input type="text" name="email" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('email')).'"></td></tr>'."\n";
|
||||||
|
// Url
|
||||||
|
print '<tr><td>'.$langs->trans("Url").' <span style="color:red;">*</span></td><td>';
|
||||||
|
print '<input type="text" name="url" maxlength="255" class="minwidth200" value="'.dol_escape_htmltag(GETPOST('url')).'"></td></tr>'."\n";
|
||||||
// Address
|
// Address
|
||||||
print '<tr><td>'.$langs->trans("Address").'</td><td>'."\n";
|
print '<tr><td>'.$langs->trans("Address").'</td><td>'."\n";
|
||||||
print '<textarea name="address" id="address" wrap="soft" class="quatrevingtpercent" rows="'.ROWS_3.'">'.dol_escape_htmltag(GETPOST('address', 'restricthtml'), 0, 1).'</textarea></td></tr>'."\n";
|
print '<textarea name="address" id="address" wrap="soft" class="quatrevingtpercent" rows="'.ROWS_3.'">'.dol_escape_htmltag(GETPOST('address', 'restricthtml'), 0, 1).'</textarea></td></tr>'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user