View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05746 | Bug reports | Survey taking | public | 2012-02-01 22:04 | 2012-02-07 21:20 |
| Reporter | Assigned To | c_schmitz | |||
| Priority | high | Severity | block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 2.00a1 | ||||
| Fixed in Version | 1.92RC4 | ||||
| Summary | 05746: array merging error in em_manager_helper.php | ||||
| Description | Retaking a survey raises an error that tells my that the second parameter isn't an array. could be fixed with if (is_array($result['updatedValues'])) | ||||
| Additional Information | see attachment | ||||
| Tags | No tags attached. | ||||
| Attached Files | em_manager_helper.php.diff (825 bytes)
Index: helpers/expressions/em_manager_helper.php
===================================================================
--- helpers/expressions/em_manager_helper.php (revision 12258)
+++ helpers/expressions/em_manager_helper.php (working copy)
@@ -2951,7 +2951,8 @@
{
$result = $LEM->_ValidateGroup($LEM->currentGroupSeq);
$message .= $result['message'];
- $updatedValues = array_merge($updatedValues,$result['updatedValues']);
+ if (is_array($result['updatedValues']))
+ $updatedValues = array_merge($updatedValues,$result['updatedValues']);
if (!is_null($result) && ($result['mandViolation'] || !$result['valid']))
{
// redisplay the current group
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 2 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | firefox | ||||
| Database type & version | Mysql | ||||
| Server OS (if known) | mac os x | ||||
| Webserver software & version (if known) | apache | ||||
| PHP Version | 5.3 | ||||
| Git branch / Pull Request URL | |||||
|
Can you please re-test this with the latest developemnt version. If this issues persists, please describe in detail how you can reproduce it and if possible attach a small sample survey. |
|
|
? |
|
|
It works from my point of view. Thanks |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2012-02-01 22:04 |
|
New Issue | |
| 2012-02-01 22:04 |
|
File Added: em_manager_helper.php.diff | |
| 2012-02-03 13:04 | c_schmitz | Assigned To | => TMSWhite |
| 2012-02-03 13:04 | c_schmitz | Status | new => assigned |
| 2012-02-03 17:17 | c_schmitz | Assigned To | TMSWhite => c_schmitz |
| 2012-02-03 17:18 | c_schmitz | Note Added: 17211 | |
| 2012-02-03 17:18 | c_schmitz | Status | assigned => feedback |
| 2012-02-06 22:15 | c_schmitz | Note Added: 17266 | |
| 2012-02-07 20:58 |
|
Note Added: 17291 | |
| 2012-02-07 20:58 |
|
Status | feedback => assigned |
| 2012-02-07 21:20 | c_schmitz | Status | assigned => closed |
| 2012-02-07 21:20 | c_schmitz | Resolution | open => fixed |
| 2012-02-07 21:20 | c_schmitz | Fixed in Version | => 1.92RC4 |