Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into 7.0
This commit is contained in:
commit
677d7dd0fb
@ -212,7 +212,7 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
setEventMessages($object->errors, $object->error, 'errors');
|
setEventMessages($object->error, $object->errors, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ if ($action == 'dolibarr2ldap')
|
|||||||
setEventMessages($langs->trans("MemberSynchronized"), null, 'mesgs');
|
setEventMessages($langs->trans("MemberSynchronized"), null, 'mesgs');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setEventMessages($ldap->errors, $ldap->error, 'errors');
|
setEventMessages($ldap->error, $ldap->errors, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -291,7 +291,7 @@ class modSociete extends DolibarrModules
|
|||||||
$this->export_sql_end[$r] .=' AND (sc.fk_user = '.$user->id.' ';
|
$this->export_sql_end[$r] .=' AND (sc.fk_user = '.$user->id.' ';
|
||||||
if (! empty($conf->global->SOCIETE_EXPORT_SUBORDINATES_CHILDS)) {
|
if (! empty($conf->global->SOCIETE_EXPORT_SUBORDINATES_CHILDS)) {
|
||||||
$subordinatesids = $user->getAllChildIds();
|
$subordinatesids = $user->getAllChildIds();
|
||||||
$this->export_sql_end[$r] .=count($subronidatesids)>0 ? ' OR (sc.fk_user IN ('.implode(',',$subronidatesids).')' : '';
|
$this->export_sql_end[$r] .=count($subordinatesids)>0 ? ' OR (sc.fk_user IN ('.implode(',',$subordinatesids).')' : '';
|
||||||
}
|
}
|
||||||
$this->export_sql_end[$r] .=')';
|
$this->export_sql_end[$r] .=')';
|
||||||
}
|
}
|
||||||
@ -328,7 +328,7 @@ class modSociete extends DolibarrModules
|
|||||||
$this->export_sql_end[$r] .=' AND (sc.fk_user = '.$user->id.' ';
|
$this->export_sql_end[$r] .=' AND (sc.fk_user = '.$user->id.' ';
|
||||||
if (! empty($conf->global->SOCIETE_EXPORT_SUBORDINATES_CHILDS)) {
|
if (! empty($conf->global->SOCIETE_EXPORT_SUBORDINATES_CHILDS)) {
|
||||||
$subordinatesids = $user->getAllChildIds();
|
$subordinatesids = $user->getAllChildIds();
|
||||||
$this->export_sql_end[$r] .=count($subronidatesids)>0 ? ' OR (sc.fk_user IN ('.implode(',',$subronidatesids).')' : '';
|
$this->export_sql_end[$r] .=count($subordinatesids)>0 ? ' OR (sc.fk_user IN ('.implode(',',$subordinatesids).')' : '';
|
||||||
}
|
}
|
||||||
$this->export_sql_end[$r] .=')';
|
$this->export_sql_end[$r] .=')';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user