View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
08039 | Bug reports | Import/Export | public | 2013-07-23 15:20 | 2013-08-21 09:30 |
Reporter | mfaber | Assigned To | mfaber | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05 RC | ||||
Target Version | 2.05 RC | Fixed in Version | 2.05 RC | ||
Summary | 08039: Subquestion code '0' means trouble | ||||
Description | If numbers are used as subquestion code (see attached picture) it works for all except for the number zero. Number 0 is replaced by "" in the variable name (see response array in attached picture). This for example leads to values being VV-exported under code instead of [code]_0. This seems to apply to at least array and multiple choice questions. Maybe all question types with subquestions? | ||||
Steps To Reproduce | import attached LSA Also: | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 130723 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | FF | ||||
Database type & version | MySQL (recent XAMP) | ||||
Server OS (if known) | Win7 | ||||
Webserver software & version (if known) | Apache (recent XAMP) | ||||
PHP Version | PHP (recent XAMP) | ||||
can someone have a look and merge if ok? Thanks |
|
Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=12861 |
|
Thanks, Sammousa! |
|
2.05 beta 6 released |
|
LimeSurvey: 2.05 a55d4abc 2013-07-31 19:25:35 Committer: mfaber Details Diff |
Fixes issue 08065: Answer code conversion to '0' DEV: when exporting to CSV/EXCEL etc. and conversion DEV: of Y or N to '0' was chosen, values were wrongly DEV: exported as 'missing values' (empty) DEV: DEV: nasty php typing problem....probably same problem DEV: with issue 08039 |
Affected Issues 08039, 08065 |
|
mod - application/helpers/common_helper.php | Diff File | ||
LimeSurvey: 2.05 d5801ca1 2013-08-02 21:29:46 Committer: mfaber Details Diff |
Fixed issue 08039: Problems with subquestion code '0' DEV: Both described issues were separate incidences of DEV: the same thing: php empty()/($var) treat the '0' DEV: as not set or empty. DEV: isset() on the other hand also returns "" as true. DEV: I am afraid this problem may be present more often in DEV: the code. Maybe implement a custom function DEV: is_set() which also returns FALSE for "" but TRUE for '0' |
Affected Issues 08039 |
|
mod - application/helpers/viewHelper.php | Diff File | ||
mod - application/libraries/PluginManager/LimesurveyApi.php | Diff File | ||
LimeSurvey: 2.05 26efccc1 2013-08-13 12:28:41 Details Diff |
Merge pull request #102 from mfaber/SQ0meanstrouble205 Fixed issue 08039: Problems with subquestion code '0' |
Affected Issues 08039 |
|
mod - application/helpers/viewHelper.php | Diff File | ||
mod - application/libraries/PluginManager/LimesurveyApi.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-07-23 15:20 | mfaber | New Issue | |
2013-07-23 15:20 | mfaber | File Added: SQequalsZero_question.JPG | |
2013-07-23 15:21 | mfaber | File Added: SQequalsZero_response_array.JPG | |
2013-07-23 15:21 | mfaber | File Added: SQequalsZero_after_import_export.JPG | |
2013-07-23 15:27 | mfaber | Description Updated | |
2013-07-23 15:29 | mfaber | Target Version | => 2.05 RC |
2013-07-31 18:44 | mfaber | Relationship added | related to 08065 |
2013-08-02 23:40 | mfaber | Assigned To | => mfaber |
2013-08-02 23:40 | mfaber | Status | new => assigned |
2013-08-02 23:42 | mfaber | Note Added: 25911 | |
2013-08-02 23:42 | mfaber | Resolution | open => fixed |
2013-08-02 23:42 | mfaber | Fixed in Version | => 2.05 RC |
2013-08-11 19:29 | mfaber | Changeset attached | => LimeSurvey master 720370bf |
2013-08-12 00:33 | mfaber | Changeset removed | LimeSurvey master 720370bf => |
2013-08-13 14:28 | mfaber | Changeset attached | => LimeSurvey 2.05 d5801ca1 |
2013-08-13 14:28 | sammousa | Changeset attached | => LimeSurvey 2.05 26efccc1 |
2013-08-13 14:28 | sammousa | Note Added: 25991 | |
2013-08-13 14:35 | mfaber | Note Added: 25992 | |
2013-08-13 14:46 | mfaber | Status | assigned => resolved |
2013-08-16 13:54 | c_schmitz | Note Added: 26009 | |
2013-08-16 13:54 | c_schmitz | Status | resolved => closed |
2013-08-21 09:30 | mfaber | Changeset attached | => LimeSurvey 2.05 a55d4abc |