View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06085 | Bug reports | Other | public | 2012-05-11 02:54 | 2012-05-17 10:27 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92+ | ||||
Fixed in Version | 1.92+ | ||||
Summary | 06085: Internal errors when activating survey if Subquestion Code (title) has a trailing space. | ||||
Description | If a Multiple Choice SubQuestion has a Code with a trailing space, then the survey looks fine when previewed and tested, but when activated the following error appears: Database error: Incorrect column name '69123X496X19472C '
| ||||
Steps To Reproduce | Import the attached test survey, which has a single question. Here are steps to create such a survey:
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 120501 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | 155 | ||||
Server OS (if known) | Ubuntu 11.10 64-bit | ||||
Webserver software & version (if known) | apache 2.2 | ||||
PHP Version | php5 5.3.6 | ||||
And more, With a space inside subQcode, answer are not saved :). Thanks. Denis |
|
But need to deactivate javascript to put some space inside code. return goodchars(event,'1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWZYZ_') |
|
Just don't deactivate JavaScript? |
|
Maybe importing and copy/paste can make problem. But we can put some "before sending" javascript or some sanitize_paranoid_string in database.php or some filter just before activation. Denis |
|
Actually, it would be great if subq titles could be arbitrary strings of any length. That way users could use useful mnemonics, and results exported to CSV files would have intelligible titles when exporting with just the codes. Is there any functional reason subq titles have to be 5 characters or less? |
|
Seems pasting is the issue. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8479 |
|
Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8481 |
|
New 1.92+ version released. |
|
LimeSurvey: master f67c1157 2012-05-15 14:58:06 Details Diff |
Fixed issue 06085: By pasting a subquestion code can contain a space |
Affected Issues 06085 |
|
mod - admin/scripts/subquestions.js | Diff File | ||
LimeSurvey: Yii ab77d01f 2012-05-15 14:58:12 Details Diff |
Fixed issue 06085: By pasting a subquestion code can contain a space |
Affected Issues 06085 |
|
mod - application/views/admin/survey/Question/subQuestion_view.php | Diff File | ||
mod - scripts/admin/subquestions.js | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-11 02:54 |
|
New Issue | |
2012-05-11 02:54 |
|
File Added: ErrorsWhenActivating.lss | |
2012-05-11 12:06 | DenisChenu | Note Added: 18696 | |
2012-05-11 12:18 | DenisChenu | Note Added: 18697 | |
2012-05-11 22:47 | c_schmitz | Assigned To | => c_schmitz |
2012-05-11 22:47 | c_schmitz | Status | new => assigned |
2012-05-11 23:04 | c_schmitz | Note Added: 18720 | |
2012-05-12 11:10 | DenisChenu | Note Added: 18721 | |
2012-05-14 06:52 |
|
Note Added: 18730 | |
2012-05-15 21:38 | c_schmitz | Note Added: 18772 | |
2012-05-15 23:58 | c_schmitz | Status | assigned => resolved |
2012-05-15 23:58 | c_schmitz | Fixed in Version | => 1.92+ |
2012-05-15 23:58 | c_schmitz | Resolution | open => fixed |
2012-05-15 23:59 | c_schmitz | Changeset attached | => LimeSurvey master f67c1157 |
2012-05-15 23:59 | c_schmitz | Note Added: 18775 | |
2012-05-15 23:59 | c_schmitz | Changeset attached | => LimeSurvey Yii ab77d01f |
2012-05-15 23:59 | c_schmitz | Note Added: 18776 | |
2012-05-17 10:27 | c_schmitz | Note Added: 18813 | |
2012-05-17 10:27 | c_schmitz | Status | resolved => closed |