View Issue Details

This bug affects 1 person(s).
IDProjectCategoryView StatusLast Update
19303Bug reportsOtherpublic2023-12-07 17:56
Reportersupernovus Assigned Top_teichmann  
Status resolvedResolutionfixed 
Product Version6.3.x 
Summary19303: Survey Quotas - Quick CSV report is broken

The Survey Quotas "Quick CSV report" feature is broken in the current version of Limesurvey.

It's due to a typo in the actionQuickCSVReport() function of the application/controllers/QuotasController.php file:

        $surveyid = sanitize_int($surveyid);
        if (!Permission::model()->hasSurveyPermission($surveyId, 'quotas')) {
            throw new CHttpException(403, gT("You do not have permission on this survey."));

PHP variable names are case-sensitive, and $surveyId is a non-defined variable, so nobody ever has permission to use the feature.
I changed that to $surveyid (the variable as named everywhere else in the file) on my local copy and the feature works properly again.

Steps To Reproduce

Steps to reproduce

  • Go to Survey Quotas page
  • Click the Quick CSV report button

Expected result

A CSV file with the quotas report should be downloaded.

Actual result

A 403 Forbidden error message appears, even for superadmin users.


Change $surveyId to $surveyid in QuotasController.php controller file.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)6.3.8+231204
I will donate to the project if issue is resolvedNo
BrowserChromium 119.0.6045.199
Database type & version10.11.5-MariaDB
Server OS (if known)A set of modular docker containers running on a Linux server
Webserver software & version (if known)nginx/1.24.0
PHP Version8.2.11

Users monitoring this issue

There are no users monitoring this issue.

Issue History

Date Modified Username Field Change
2023-12-07 17:54 supernovus New Issue
2023-12-07 17:56 DenisChenu Note Added: 78918
2023-12-07 17:56 DenisChenu Bug heat 0 => 2
2023-12-07 17:56 DenisChenu Assigned To => p_teichmann
2023-12-07 17:56 DenisChenu Status new => resolved
2023-12-07 17:56 DenisChenu Resolution open => fixed