Skip to content

Commit 53ad1d2

Browse files
committed
fix single and double quote mixup
1 parent 16afb73 commit 53ad1d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Db/ReportItemMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ public function report($user, $from, $to, $filterProjectId, $filterClientId, $fi
6161
$selectFields[]= "min(start) as time";
6262
}
6363
} elseif ($timegroup == 'week') {
64-
$selectFields[]= "concat(date_part(\'year\', to_timestamp(start)), 'W', to_char(to_timestamp(start), 'IW')) as time";
64+
$selectFields[]= "concat(date_part('year', to_timestamp(start)), 'W', to_char(to_timestamp(start), 'IW')) as time";
6565
}elseif ($timegroup == 'day') {
6666
$selectFields[]= "start as time";
6767
}elseif ($timegroup == 'year') {
68-
$selectFields[]= 'date_part(\'year\', to_timestamp(start)) as time';
68+
$selectFields[]= "date_part('year', to_timestamp(start)) as time";
6969
}elseif ($timegroup == 'month') {
7070
$selectFields[]= "to_char(to_timestamp(start), 'YYYY-MM') as time";
7171
}

0 commit comments

Comments
 (0)