X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttClientHelper.class.php;h=14788ae4c8b96631ecf1ada4d210deafed3c6334;hb=f8202dca930de9e3cc70cbc8084e10a0f346f389;hp=3b7a9cd62959a6fe4fb34ec7b5aefe1a71abc6fa;hpb=8e340f1e9cb764f423c0a5e7067c892f88d0ec73;p=timetracker.git diff --git a/WEB-INF/lib/ttClientHelper.class.php b/WEB-INF/lib/ttClientHelper.class.php index 3b7a9cd6..14788ae4 100644 --- a/WEB-INF/lib/ttClientHelper.class.php +++ b/WEB-INF/lib/ttClientHelper.class.php @@ -60,7 +60,7 @@ class ttClientHelper { $mdb2 = getConnection(); $sql = "select id, name from tt_clients - where team_id = $user->team_id and (status = 0 or status = 1) order by name"; + where team_id = $user->team_id and (status = 0 or status = 1) order by upper(name)"; $res = $mdb2->query($sql); if (!is_a($res, 'PEAR_Error')) { while ($val = $res->fetchRow()) { @@ -286,7 +286,7 @@ class ttClientHelper { $sql = "select distinct c.id, c.name, c.projects from tt_user_project_binds upb inner join tt_client_project_binds cpb on (cpb.project_id = upb.project_id) inner join tt_clients c on (c.id = cpb.client_id and c.status = 1) - where upb.user_id = $user_id and upb.status = 1 order by c.name"; + where upb.user_id = $user_id and upb.status = 1 order by upper(c.name)"; $res = $mdb2->query($sql); if (!is_a($res, 'PEAR_Error')) {