Merge pull request #23422 from Dolibarr/fix_fatal_error_on_task_list_time_to_bill

FIX #23420 : wrong check on $search_categ value causing FATAL ERROR
This commit is contained in:
Laurent Destailleur 2023-01-05 14:47:43 +01:00 committed by GitHub
commit a892ef56ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,7 +452,7 @@ if (!empty($arrayfields['t.tobill']['checked']) || !empty($arrayfields['t.billed
$sql .= " s.nom, s.rowid,";
$sql .= " t.datec, t.dateo, t.datee, t.tms,";
$sql .= " t.rowid, t.ref, t.label, t.planned_workload, t.duration_effective, t.progress,t.budget_amount, t.fk_statut";
if ($search_categ) {
if ($search_categ > 0) {
$sql .= ", cs.fk_categorie, cs.fk_project";
}
// Add fields from extrafields