From: Anne Limoges Date: Tue, 19 Mar 2013 09:14:36 +0000 (+0100) Subject: Bugfix : allows survey creator to see partial results. X-Git-Tag: xorg/1.1.8~13 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ff64abfdbc00bcfb5ccaae3b53c0b1ab7a5c54f5;p=platal.git Bugfix : allows survey creator to see partial results. --- diff --git a/modules/survey/survey.inc.php b/modules/survey/survey.inc.php index 5139844..6f8ad08 100644 --- a/modules/survey/survey.inc.php +++ b/modules/survey/survey.inc.php @@ -352,7 +352,7 @@ class Survey if (!S::user()->checkPerms(PERMS_USER)) { $where .= XDB::format(' AND mode = {?}', self::MODE_ALL); } - $sql = 'SELECT id, title, end, mode + $sql = 'SELECT id, title, uid, end, mode FROM surveys WHERE '.$where.' ORDER BY end DESC;';