View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06443 | Bug reports | Assessments | public | 2012-08-07 03:01 | 2012-08-16 10:23 |
Reporter | fsando | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00RC8 | ||||
Target Version | 2.00RC9 | Fixed in Version | 2.00RC9 | ||
Summary | 06443: Adding new language to existing labelset results in "The active record cannot be inserted to database because it is not new. " | ||||
Description | Trying to add a new language to an existing labelset will result in an internal error. | ||||
Steps To Reproduce | 1) Create a new labelset | ||||
Additional Information | The error happens in if (isset($sqlvalues)) According to this link: http://www.yiiframework.com/forum/index.php/topic/8900-how-to-insert-data-record-using-insert-method/ insert() is a lowlevel function and one should rather use save() in stead of insert(). I have substituted this code for the three lines above. if (isset($sqlvalues)) { I have not tested extensively but it appears to work: no errors languages are added as expected, labels for one language do not disappear when other languages are updated. | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 120721 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | firefox 14.0.1 Ubuntu | ||||
Database type & version | mysql Ver 14.14 Distrib 5.5.24, for debian-linux-gnu (x86_64) using readline 6.2 | ||||
Server OS (if known) | Ubuntu 12.04 Linux 3.2.0-27-generic x86_64 x86_64 | ||||
Webserver software & version (if known) | Server version: Apache/2.2.22 (Ubuntu) Server built: Feb 13 2012 01:51:50 | ||||
PHP Version | PHP 5.3.10-1ubuntu3.2 with Suhosin-Patch (cli) (built: Jun 13 2012 17:19:58) | ||||
Looks great. Would you be able create a pull request on Github? |
|
I'm pulling the code with git but not sure exactly what a pull request is. I'll look into it to night. |
|
Please have a look at https://help.github.com/articles/using-pull-requests/ |
|
I made a pull request last night and it seemed to be effectuated, though this issue is still marked as open. Did I do something wrong? |
|
Everything is fine - just forgot to close it ;) |
|
Version 2.00 RC 9 released. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-07 03:01 | fsando | New Issue | |
2012-08-07 11:05 | c_schmitz | Assigned To | => c_schmitz |
2012-08-07 11:05 | c_schmitz | Status | new => assigned |
2012-08-07 11:06 | c_schmitz | Note Added: 20238 | |
2012-08-07 16:30 | fsando | Note Added: 20250 | |
2012-08-07 20:48 | c_schmitz | Note Added: 20257 | |
2012-08-07 20:49 | c_schmitz | Status | assigned => feedback |
2012-08-08 16:08 | fsando | Note Added: 20283 | |
2012-08-08 16:08 | fsando | Status | feedback => assigned |
2012-08-08 16:11 | c_schmitz | Note Added: 20284 | |
2012-08-08 16:11 | c_schmitz | Status | assigned => resolved |
2012-08-08 16:11 | c_schmitz | Fixed in Version | => 2.00+ |
2012-08-08 16:11 | c_schmitz | Resolution | open => fixed |
2012-08-12 15:32 | c_schmitz | Fixed in Version | 2.00+ => 2.00RC9 |
2012-08-15 00:22 | c_schmitz | Target Version | => 2.00RC9 |
2012-08-16 10:23 | c_schmitz | Note Added: 20465 | |
2012-08-16 10:23 | c_schmitz | Status | resolved => closed |