Skip to content

Commit

Permalink
FIx: SQL syntax error. #164
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartheyrman22 committed Sep 1, 2021
1 parent 804b2e1 commit e888819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/timesheet/TimesheetReportProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
if (!$admin) {
$sql .= ' JOIN '.MAIN_DB_PREFIX.'element_contact AS ec ON pjt.rowid = element_id ';
$sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'c_type_contact as ctc ON ctc.rowid = ec.fk_c_type_contact';
$sql .= ' WHERE (ctc.element in (\'project\') AND (ctc.code LIKE \'%LEADER%\' OR ctc.code LIKE \'%BILLING%\'))) AND ctc.active = \'1\' ';
$sql .= ' WHERE (ctc.element in (\'project\') AND (ctc.code LIKE \'%LEADER%\' OR ctc.code LIKE \'%BILLING%\')) AND ctc.active = \'1\' ';
$sql .= ' AND fk_socpeople = \''.$userid.'\' and fk_statut = \'1\'';
$sql .= " AND pjt.entity IN (".getEntity('projet').")";
} else{
Expand Down

0 comments on commit e888819

Please sign in to comment.