View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05065 | Bug reports | Survey taking | public | 2011-03-28 16:19 | 2011-05-04 19:47 |
| Reporter | room2web | Assigned To | |||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91RC5 | ||||
| Fixed in Version | 1.91 | ||||
| Summary | 05065: Show totals: grand total is not calculated on reload/revisit of Survey Page | ||||
| Description | Grand total is not calculated on reload/revisit of Survey Page | ||||
| Steps To Reproduce | Create a survey.
| ||||
| Additional Information | The following change to survey_runtime.js should fix this issue. [...] | ||||
| Tags | No tags attached. | ||||
| Attached Files | 05065_dev.patch (784 bytes)
Index: scripts/survey_runtime.js
===================================================================
--- scripts/survey_runtime.js (revision 10000)
+++ scripts/survey_runtime.js (working copy)
@@ -575,11 +575,15 @@
if(vert && _bits[_counter].length > 1)
{
_grand=1;
+ //run calc across last row
+ calc_horo(_bits.length - 1);
}
else
{
_grand=2;
_bits[_counter][_bits[0].length - 1]=_bits[_counter][0];
+ //run calc on last col
+ calc_vert(_bits[0].length - 1);
}
}
else
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 9872 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MySql 5 | ||||
| Server OS (if known) | any | ||||
| Webserver software & version (if known) | any | ||||
| PHP Version | any | ||||
|
Evan, can you please take a look at this and check if this change fine? |
|
|
Patch attached. Issue was that initially _grad = 0 and hence, no case of switch statement inside calc was satisfied and hence the problem! |
|
|
Looks good - please commit. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-03-28 16:19 | room2web | New Issue | |
| 2011-03-29 20:01 | c_schmitz | Assigned To | => Evan |
| 2011-03-29 20:01 | c_schmitz | Status | new => assigned |
| 2011-03-29 20:02 | c_schmitz | Note Added: 14607 | |
| 2011-04-13 16:37 | c_schmitz | Assigned To | Evan => dionet |
| 2011-04-13 16:38 | c_schmitz | Assigned To | dionet => magiclko |
| 2011-04-14 15:10 |
|
File Added: 05065_dev.patch | |
| 2011-04-14 15:15 |
|
Note Added: 14815 | |
| 2011-04-16 17:37 |
|
Assigned To | magiclko => c_schmitz |
| 2011-04-16 17:43 | c_schmitz | Assigned To | c_schmitz => magiclko |
| 2011-04-16 17:43 | c_schmitz | Note Added: 14829 | |
| 2011-04-16 20:56 |
|
Status | assigned => resolved |
| 2011-05-04 19:47 | c_schmitz | Status | resolved => closed |
| 2011-05-04 19:47 | c_schmitz | Resolution | open => fixed |
| 2011-05-04 19:47 | c_schmitz | Fixed in Version | => 1.91 |