Merge pull request #20768 from atm-john/15.0_fix_fatal_error_on_task_list

FIX : fatal error for $db  usage in tpl
This commit is contained in:
Laurent Destailleur 2022-05-04 16:46:22 +02:00 committed by GitHub
commit 55e60bf628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -918,6 +918,7 @@ class Task extends CommonObjectLine
// Add where from extra fields
$extrafieldsobjectkey = 'projet_task';
$extrafieldsobjectprefix = 'efpt.';
global $db; // needed for extrafields_list_search_sql.tpl
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_sql.tpl.php';
// Add where from hooks
$parameters = array();