View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06065 | Bug reports | Import/Export | public | 2012-05-04 14:36 | 2012-05-10 12:22 |
Reporter | Assigned To | c_schmitz | |||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92+ | ||||
Fixed in Version | 1.92+ | ||||
Summary | 06065: Error when creating a new survey by copying an existing one | ||||
Description | When creating a new survey by copying an existing one, I receive the following error message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and surveyls_survey_id= and surveyls_language='en'' at line 1:SELECT * FROM The new survey is how ever correctly created. | ||||
Steps To Reproduce | Not sure if all is required: 1) Log in as admin | ||||
Additional Information | This happens with both PostgreSQL and MySQL. Limesurvey default language is set to Finnish. In admin.php?action=personalsettings the user interface language is also set to Finnish for both admin and the less-privileged user. Survey language is Finnish with no additional languages. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 120501 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Firefox and IE | ||||
Database type & version | mysql-server.i686 5.1.61-1.el6_2.1 | ||||
Server OS (if known) | Linux (CentOS-6.2) 2.6.32-220.13.1.el6.i686 #1 SMP Tue Apr 17 22:09:08 BST 2012 i686 | ||||
Webserver software & version (if known) | Apache/2.2.15 (CentOS) | ||||
PHP Version | PHP Version 5.3.3 | ||||
I am sorry but I cannot reproduce this. |
|
I tried also with all permissons granted on survey level, but the error is still produced. Admin and the less-privileged user both belong to the same group, and the less-privileged user can only see surveys in it's own group. |
|
Sorry, still can't reproduce. Can you please try to reproduce this on our demo installation and give us the login data of the particular user? |
|
The demo installations seems to be broken: Table '2_demo.lime_survey_permissions' doesn't exist: SELECT a.*, surveyls_title, surveyls_description, surveyls_welcometext, surveyls_url FROM Don't know if I broke it or someone else? I added a new group bug_6065 and user user_bug_6065 to that group (members admin, user_bug_6065). Created a survey as admin (with survey language Suomi/Finnish). After logging out and trying to log in as user_bug_6065, the above error is received. So cannot test at the moment. |
|
hotspants: no you didnt. I just fixed the demo. please try again. |
|
Btw, user_bug_6065 has password: 'test' |
|
Now I get: Table '2_demo.lime_quota_members' doesn't exist:SELECT lime_quota_members.* FROM lime_quota_members WHERE lime_quota_members.sid=49963 |
|
Fixed. Sorry, try again, please ;) |
|
Now I get the same error as in our own environment: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and surveyls_survey_id= and surveyls_language='en'' at line 1:SELECT * FROM i.e. as user_bug_6065 I copied the survey "bug 6065" to the name "test2 / copied from admin" |
|
Btw, when debug=1, I also get: |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8345 |
|
Thank you very much. That way I could reproduce and resolve it! |
|
Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8346 |
|
Good to hear! Can you estimate when the fix will be released? Would it break the ComfortUpdate if i were to patch my installation myself? i.e. add Thanks again |
|
A new version will be released tomorrow. |
|
One more thing: I find it confusing when having copied a survey, the original is set active instead of the newly created one. You'd have to click "Go to survey" or select the new survey from to drop down list to get to the new survey. I have made the mistake of modifying the original while I thought I was working with the new one more than a few times. That's the main reason I keep the survey permissions as restrictive as possible (for non-admin users). I'll attach a screen shot from the demo environment just to clarify. |
|
LimeSurvey: master 684b6624 2012-05-07 08:10 Details Diff |
Fixed issue 06065: Error when creating a new survey by copying an existing one |
Affected Issues 06065 |
|
mod - admin/import_functions.php | Diff File | ||
LimeSurvey: Yii f177ee8b 2012-05-07 08:13 Details Diff |
Fixed issue 06065: Error when creating a new survey by copying an existing one |
Affected Issues 06065 |
|
mod - application/helpers/admin/import_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-04 14:36 |
|
New Issue | |
2012-05-04 14:53 |
|
Issue Monitored: user19702 | |
2012-05-05 23:20 | c_schmitz | Assigned To | => c_schmitz |
2012-05-05 23:20 | c_schmitz | Status | new => assigned |
2012-05-07 12:04 | c_schmitz | Note Added: 18594 | |
2012-05-07 12:04 | c_schmitz | Status | assigned => feedback |
2012-05-07 12:36 |
|
File Added: limesurvey_bug.zip | |
2012-05-07 12:38 |
|
Note Added: 18595 | |
2012-05-07 12:38 |
|
Status | feedback => assigned |
2012-05-07 13:52 | c_schmitz | Note Added: 18603 | |
2012-05-07 13:52 | c_schmitz | Status | assigned => feedback |
2012-05-07 14:19 |
|
Note Added: 18604 | |
2012-05-07 14:19 |
|
Status | feedback => assigned |
2012-05-07 14:25 | c_schmitz | Note Added: 18605 | |
2012-05-07 14:29 | c_schmitz | Note Added: 18606 | |
2012-05-07 14:43 |
|
Note Added: 18607 | |
2012-05-07 14:46 | c_schmitz | Note Added: 18608 | |
2012-05-07 14:51 |
|
Note Added: 18609 | |
2012-05-07 14:59 |
|
Note Added: 18610 | |
2012-05-07 15:09 | c_schmitz | Changeset attached | => LimeSurvey master 684b6624 |
2012-05-07 15:09 | c_schmitz | Note Added: 18611 | |
2012-05-07 15:09 | c_schmitz | Resolution | open => fixed |
2012-05-07 15:10 | c_schmitz | Note Added: 18612 | |
2012-05-07 15:10 | c_schmitz | Status | assigned => resolved |
2012-05-07 15:10 | c_schmitz | Fixed in Version | => 1.92+ |
2012-05-07 15:12 | c_schmitz | Changeset attached | => LimeSurvey Yii f177ee8b |
2012-05-07 15:12 | c_schmitz | Note Added: 18613 | |
2012-05-08 09:15 |
|
Note Added: 18619 | |
2012-05-08 09:17 | c_schmitz | Note Added: 18620 | |
2012-05-08 10:57 |
|
Note Added: 18626 | |
2012-05-08 10:59 |
|
File Added: original_survey_is_active_after_copying.png | |
2012-05-10 12:22 | c_schmitz | Status | resolved => closed |