mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
New all project contact in task creation (#35862)
Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
committed by
GitHub
parent
cdd4dde166
commit
ad67faa01d
@@ -2211,7 +2211,7 @@ class Form
|
||||
global $action;
|
||||
|
||||
// If no preselected user defined, we take current user
|
||||
if ((is_numeric($selected) && ($selected < -3 || empty($selected))) && !getDolGlobalString('SOCIETE_DISABLE_DEFAULT_SALESREPRESENTATIVE')) {
|
||||
if ((is_numeric($selected) && ($selected < -4 || empty($selected))) && !getDolGlobalString('SOCIETE_DISABLE_DEFAULT_SALESREPRESENTATIVE')) {
|
||||
$selected = $user->id;
|
||||
}
|
||||
|
||||
@@ -2388,6 +2388,18 @@ class Form
|
||||
'picto' => ''
|
||||
);
|
||||
}
|
||||
if ($showalso == 4) {
|
||||
$out .= '<option value="-4"' . ((in_array(-4, $selected)) ? ' selected' : '') . '>-- ' . $langs->trans("AllProjectContacts") . ' --</option>' . "\n";
|
||||
|
||||
$outarray[-4] = '-- ' . $langs->trans("AllProjectContacts") . ' --';
|
||||
$outarray2[-4] = array(
|
||||
'id' => -4,
|
||||
'label' => '-- ' . $langs->trans("AllProjectContacts") . ' --',
|
||||
'labelhtml' => '-- ' . $langs->trans("AllProjectContacts") . ' --',
|
||||
'color' => '',
|
||||
'picto' => ''
|
||||
);
|
||||
}
|
||||
|
||||
$userstatic = new User($this->db);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user