Small perf fix

This commit is contained in:
Laurent Destailleur 2021-05-27 02:36:16 +02:00
parent 240ca50a84
commit 4f61286ae2

View File

@ -320,7 +320,7 @@ if ($search_title != '') {
$param .= '&search_title='.urlencode($search_title); $param .= '&search_title='.urlencode($search_title);
} }
if ($search_note != '') { if ($search_note != '') {
$param .= '&search_note='.$search_note; $param .= '&search_note='.urlencode($search_note);
} }
if (GETPOST('datestartday', 'int')) { if (GETPOST('datestartday', 'int')) {
$param .= '&datestartday='.GETPOST('datestartday', 'int'); $param .= '&datestartday='.GETPOST('datestartday', 'int');
@ -829,7 +829,11 @@ if ($resql) {
$actionstatic->location = $obj->location; $actionstatic->location = $obj->location;
$actionstatic->note_private = dol_htmlentitiesbr($obj->note); $actionstatic->note_private = dol_htmlentitiesbr($obj->note);
$actionstatic->fetchResources(); // Initialize $this->userassigned && this->socpeopleassigned array && this->userownerid
// but only if we need it
if (!empty($arrayfields['a.fk_contact']['checked'])) {
$actionstatic->fetchResources();
}
print '<tr class="oddeven">'; print '<tr class="oddeven">';