View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06303Bug reportspublic2012-12-13 14:21
Reporteruser20520Assigned Tosammousa  
PriorityimmediateSeveritycrash 
Status closedResolutionfixed 
Summary06303: Can not edit general settings for a new survey (instalattion OK in language pt-br)
Description

I can't edit general settings of a new survey just started with version 2.00 RC4.
The error is at application/models/Questions.php, line 190.
The use of bindParam for the value $sCondition makes the resulting sql string has something like "... AND '<sCondition value>' and those string delimiters crashs with postgresql because it is not a logical operation.

Steps To Reproduce

Just install 2.00 RC4 (used postgresql as the database and pt-br as default language) and start a new survey. After you finish to save your new survey click on edit icon and then on "general settings" and the erros will be reproduced.

Additional Information

At this momment I'm using RC4 with the following changes on Questions.php, line 190.

            $command->where("({{questions}}.sid = :iSurveyID AND {{questions}}.language = :sLanguage AND {{questions}}.parent_qid = 0) AND " . $sCondition)
            ->bindParam(":iSurveyID", $iSurveyID, PDO::PARAM_STR)
            ->bindParam(":sLanguage", $sLanguage, PDO::PARAM_STR);
            //->bindParam(":scondition", $sCondition, PDO::PARAM_STR);
TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)
I will donate to the project if issue is resolved
Browser
Database type & version
Server OS (if known)
Webserver software & version (if known)
PHP Version
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

sammousa

sammousa

2012-12-13 14:21

reporter   ~23221

No longer applicable since 2.0 is long since stable.

Issue History

Date Modified Username Field Change
2012-07-04 19:22 user20520 New Issue
2012-12-13 14:21 sammousa Note Added: 23221
2012-12-13 14:21 sammousa Status new => closed
2012-12-13 14:21 sammousa Assigned To => sammousa
2012-12-13 14:21 sammousa Resolution open => fixed
2026-11-20 10:33 c_schmitz Category Survey Design => (No Category)