Fix autoselect of thirdparty
This commit is contained in:
parent
3cc888f4df
commit
b92784c04b
@ -717,6 +717,8 @@ class FormCompany extends Form
|
|||||||
print ' onChange="'.$javaScript.'"';
|
print ' onChange="'.$javaScript.'"';
|
||||||
}
|
}
|
||||||
print '>';
|
print '>';
|
||||||
|
print '<option value="-1"> </option>';
|
||||||
|
|
||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num) {
|
if ($num) {
|
||||||
|
|||||||
@ -89,7 +89,7 @@ if ($permission) {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<form class="tagtr liste_titre">
|
<form class="tagtr liste_titre">
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("ThirdParty"); ?></div>
|
<div class="tagtd liste_titre"><?php echo img_object('', 'company', 'class="optiongrey paddingright"').$langs->trans("ThirdParty"); ?></div>
|
||||||
<div class="tagtd liste_titre"><?php echo img_picto($langs->trans("Users"), 'user', 'class="optiongrey paddingright"').$langs->trans("Users").' | '.img_picto($langs->trans("Contacts"), 'contact', 'class="optiongrey paddingright"').$langs->trans("Contacts"); ?></div>
|
<div class="tagtd liste_titre"><?php echo img_picto($langs->trans("Users"), 'user', 'class="optiongrey paddingright"').$langs->trans("Users").' | '.img_picto($langs->trans("Contacts"), 'contact', 'class="optiongrey paddingright"').$langs->trans("Contacts"); ?></div>
|
||||||
<div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div>
|
<div class="tagtd liste_titre"><?php echo $langs->trans("ContactType"); ?></div>
|
||||||
<div class="tagtd liste_titre"> </div>
|
<div class="tagtd liste_titre"> </div>
|
||||||
@ -140,11 +140,8 @@ if ($permission) {
|
|||||||
} ?>
|
} ?>
|
||||||
|
|
||||||
<div class="tagtd nowrap maxwidthonsmartphone noborderbottom">
|
<div class="tagtd nowrap maxwidthonsmartphone noborderbottom">
|
||||||
<?php $selectedCompany = isset($_GET["newcompany"]) ? $_GET["newcompany"] : (empty($object->socid) ? 0 : $object->socid);
|
<?php
|
||||||
// add company icon before select list
|
$selectedCompany = GETPOSTISSET("newcompany") ? GETPOST("newcompany", 'int') : (empty($object->socid) ? 0 : $object->socid);
|
||||||
if ($selectedCompany) {
|
|
||||||
echo img_object('', 'company', 'class="hideonsmartphone"');
|
|
||||||
}
|
|
||||||
$selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); ?>
|
$selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); ?>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="tagtd nowrap noborderbottom"><?php echo img_object('', 'contact').' '.$langs->trans("ThirdPartyContacts"); ?></div>-->
|
<!-- <div class="tagtd nowrap noborderbottom"><?php echo img_object('', 'contact').' '.$langs->trans("ThirdPartyContacts"); ?></div>-->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user