Project

General

Profile

Bug #5591

List of users invited to a survey

Added by Jose Manuel Abuin Mosquera almost 9 years ago. Updated almost 9 years ago.

Status:
Bug resolved
Priority:
Normal
Assignee:
-
Category:
Survey
Target version:
Start date:
03/10/2012
Due date:
% Done:

80%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

When clicking on the link for viewing wich users answered or are invited to a survey, it's showing a lot of users who are not invited to the survey (I mean the link in the survey list, you can see it in the attachment)

These users are shown because the course id is not set in the sql query, so, to fix this, you need to edit the file /main/survey/survey_invitation.php

Line: WHERE survey_invitation.survey_code = '".Database::escape_string($survey_data['code'])."'";
Should be: WHERE survey_invitation.survey_code = '".Database::escape_string($survey_data['code'])."' AND survey_invitation.c_id=".Database::escape_string($survey_data['c_id']);

I think in this way it is working fine, otherwise please report :)


Files

invitados.jpg (11.7 KB) invitados.jpg ScreenShot Jose Manuel Abuin Mosquera, 03/10/2012 15:47
surveys.gif (18.7 KB) surveys.gif Yoselyn Castillo, 04/10/2012 17:13

Associated revisions

Revision 2b8d62ea (diff)
Added by Julio Montoya almost 9 years ago

Fixing query c_id see #5591 Reported by Jose Manuel Abuin Mosquera

History

#1

Updated by Julio Montoya almost 9 years ago

  • Status changed from Needs testing to Assigned
  • Assignee changed from Jose Manuel Abuin Mosquera to Julio Montoya
#2

Updated by Julio Montoya almost 9 years ago

  • Assignee changed from Julio Montoya to Yoselyn Castillo

Hello José,
I sent a fix for that need testing

#3

Updated by Yoselyn Castillo almost 9 years ago

  • File surveys.gif surveys.gif added
  • Status changed from Assigned to Bug resolved
  • Assignee deleted (Yoselyn Castillo)

it works fine yet. Invited users are updated successfully

Also available in: Atom PDF