Fix PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS option not correctly
supported. Fix: No limit on ldap search on dolibarr side.
This commit is contained in:
parent
4477a712d6
commit
35129f2192
@ -176,7 +176,10 @@ class Ldap
|
|||||||
|
|
||||||
if (is_resource($this->connection))
|
if (is_resource($this->connection))
|
||||||
{
|
{
|
||||||
|
// Execute the ldap_set_option here (after connect and before bind)
|
||||||
$this->setVersion();
|
$this->setVersion();
|
||||||
|
ldap_set_option($this->connection, LDAP_OPT_SIZELIMIT, 0); // no limit here. should return true.
|
||||||
|
|
||||||
|
|
||||||
if ($this->serverType == "activedirectory")
|
if ($this->serverType == "activedirectory")
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1270,14 +1270,14 @@ if ($action == 'create')
|
|||||||
print '<tr><td class="fieldrequired">'.$langs->trans('Supplier').'</td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans('Supplier').'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|
||||||
if ($_REQUEST['socid'] > 0)
|
if (GETPOST('socid') > 0)
|
||||||
{
|
{
|
||||||
print $societe->getNomUrl(1);
|
print $societe->getNomUrl(1);
|
||||||
print '<input type="hidden" name="socid" value="'.$_GET['socid'].'">';
|
print '<input type="hidden" name="socid" value="'.GETPOST('socid','int').'">';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $form->select_company((empty($_GET['socid'])?'':$_GET['socid']),'socid','s.fournisseur = 1',1);
|
print $form->select_company(GETPOST('socid','int'),'socid','s.fournisseur = 1',1);
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
@ -1392,12 +1392,13 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Project
|
// Project
|
||||||
if (! empty($conf->projet->enabled)) {
|
if (! empty($conf->projet->enabled))
|
||||||
|
{
|
||||||
$formproject = new FormProjets($db);
|
$formproject = new FormProjets($db);
|
||||||
|
|
||||||
$langs->load('projects');
|
$langs->load('projects');
|
||||||
print '<tr><td>' . $langs->trans('Project') . '</td><td colspan="2">';
|
print '<tr><td>' . $langs->trans('Project') . '</td><td colspan="2">';
|
||||||
$formproject->select_projects($soc->id, $projectid, 'projectid');
|
$formproject->select_projects((empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS)?$soc->id:-1), $projectid, 'projectid');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user