View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
09241 | Bug reports | Expression Manager | public | 2014-09-22 18:31 | 2015-05-08 09:16 |
Reporter | DenisChenu | Assigned To | gabrieljenik | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.05+ | ||||
Fixed in Version | 2.05+ | ||||
Summary | 09241: Behaviour of numeric question type (and multi numeric) | ||||
Description | multi numeric and numeric question type seems OK with invalid DECIMAL | ||||
Steps To Reproduce | Add a multi numeric question and set max chars at more tha 30 | ||||
Additional Information | Maybe we need is_decimal to numeric question type. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 140922 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | FF32 | ||||
Database type & version | Mysql 5 | ||||
Server OS (if known) | debian/linux | ||||
Webserver software & version (if known) | apache | ||||
PHP Version | PHP Version 5.4.4 | ||||
I will review this!. |
|
@gabrieljenik : it's a conceptual issue, we have to make choice :) |
|
OK, I release this then... I shall assign it to you? |
|
Hi, Can not be in dev meeting today. But i don't know if we fix ir or not. If you have another idea ? It can be really great ! PS: 2.06, not 2.05 |
|
@gabrieljenik : sorry : take it, i made an error on bug number ... We need to fix it :) |
|
OK, I got the issue. What if we add some rules to the JS in order for not to store numbers with more than 20 characters before the decimal separator and no more than 10 after the decimal separator? On the other hand,
An issue could arise if the value is generated as a calculation from an equation question. I don't know what we can do in those situations. If the number to be stored has more than 20 characters before the decimal point, we are not going to be able to store that number in the DB. We have reached the limit. How shall we handle it? |
|
A JS solution is not the only ne to do. But it's a good starting point Fixing 2.05 in survey-runtime : https://github.com/LimeSurvey/LimeSurvey/blob/master/scripts/survey_runtime.js#L173 seems OK for me. |
|
Not sure if this is going to be enough... Master >> https://github.com/LimeSurvey/LimeSurvey/pull/268 Let me know what you think. This issue is not pulling out as easy as other fixes. :) Shall I
|
|
Seems OK for me, a war,ig in manual is OK too. |
|
The beaviour when setting "numbers_only = T" for equation question types would be included the fix I made? I believe the JS function is not called for equation question types. What do you think? |
|
@gabiel : not the same : Equation question type are allways text in DB :). |
|
Fix committed to 2.06 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=15008 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=15013 |
|
Actually resolved for bug. But think we need rework on EM too (use new is_decimal function ? What for short_text/only number ? etc ...) |
|
2.05+ Build 150508 released |
|
LimeSurvey: master c0d86d2e 2015-01-12 22:04 Details Diff |
Fixed Issue 09241: Behaviour of numeric question type (and multi numeric) Dev Before sent to EM, treat numbers larger than 20 characters before decimal part or 10 after decimal part. |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File | ||
LimeSurvey: 2.06 2e039e15 2015-01-12 22:20 Details Diff |
Fixed Issue 09241: Behaviour of numeric question type (and multi numeric...) Dev Before sent to EM, treat numbers larger than 20 characters before decimal part or 10 after decimal part. |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File | ||
LimeSurvey: master 10d043ba 2015-01-12 22:20 Details Diff |
Fixed Issue 09241: Behaviour of numeric question type (and multi numeric) Dev Before sent to EM, treat numbers larger than 20 characters before decimal part or 10 after decimal part. |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File | ||
LimeSurvey: master e2859cf1 2015-01-12 22:22 Details Diff |
Fixed Issue 09241: Behaviour of numeric question type (and multi numeric) Dev Remove console.log command |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File | ||
LimeSurvey: 2.06 2b8c7f54 2015-03-07 17:06 Details Diff |
Merge pull request #269 from gabrieljenik/patch-1 Fixed Issue 09241: Behaviour of numeric question type (and multi numeric) |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File | ||
LimeSurvey: master ec5cea0a 2015-03-07 17:07 Details Diff |
Merge pull request #268 from gabrieljenik/Issue_09241 Fixed Issue 09241: Behaviour of numeric question type (and multi numeric...) |
Affected Issues 09241 |
|
mod - scripts/survey_runtime.js | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-09-22 18:31 | DenisChenu | New Issue | |
2014-09-22 18:36 | DenisChenu | File Added: survey_archive_bad_decimal.lsa | |
2014-11-26 20:31 | gabrieljenik | Note Added: 31116 | |
2014-11-26 20:32 | gabrieljenik | Assigned To | => gabrieljenik |
2014-11-26 20:32 | gabrieljenik | Status | new => assigned |
2014-11-27 08:14 | DenisChenu | Note Added: 31121 | |
2014-12-02 12:41 | gabrieljenik | Note Added: 31141 | |
2014-12-02 14:51 | DenisChenu | Note Added: 31142 | |
2014-12-02 14:51 | DenisChenu | Note Edited: 31142 | |
2014-12-02 15:02 | DenisChenu | Note Added: 31144 | |
2014-12-16 23:13 | gabrieljenik | Note Added: 31279 | |
2014-12-17 08:18 | DenisChenu | Note Added: 31281 | |
2015-01-12 22:32 | gabrieljenik | Note Added: 31457 | |
2015-01-13 08:15 | DenisChenu | Note Added: 31458 | |
2015-01-13 13:41 | gabrieljenik | Note Added: 31460 | |
2015-01-21 14:25 | DenisChenu | Note Added: 31480 | |
2015-03-07 17:07 | gabrieljenik | Changeset attached | => LimeSurvey 2.06 2e039e15 |
2015-03-07 17:07 | DenisChenu | Changeset attached | => LimeSurvey 2.06 2b8c7f54 |
2015-03-07 17:07 | DenisChenu | Note Added: 31795 | |
2015-03-07 17:07 | DenisChenu | Assigned To | gabrieljenik => DenisChenu |
2015-03-07 17:07 | DenisChenu | Resolution | open => fixed |
2015-03-07 17:08 | gabrieljenik | Changeset attached | => LimeSurvey master c0d86d2e |
2015-03-07 17:08 | gabrieljenik | Changeset attached | => LimeSurvey master 10d043ba |
2015-03-07 17:08 | gabrieljenik | Changeset attached | => LimeSurvey master e2859cf1 |
2015-03-07 17:08 | DenisChenu | Changeset attached | => LimeSurvey master ec5cea0a |
2015-03-07 17:08 | DenisChenu | Note Added: 31796 | |
2015-03-07 17:08 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
2015-03-07 17:09 | DenisChenu | Note Added: 31797 | |
2015-03-07 17:09 | DenisChenu | Status | assigned => resolved |
2015-03-07 17:09 | DenisChenu | Fixed in Version | => 2.05+ |
2015-05-08 09:16 | c_schmitz | Note Added: 32126 | |
2015-05-08 09:16 | c_schmitz | Status | resolved => closed |