View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05283 | Bug reports | Response browsing | public | 2011-06-17 22:26 | 2011-06-21 14:31 |
| Reporter | TMSWhite | Assigned To | TMSWhite | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91+ | ||||
| Fixed in Version | 1.91+ | ||||
| Summary | 05283: data entry screen throws error when no files have been uploaded | ||||
| Description | throws and error in admin/dataEntry.php at line 1005 | ||||
| Steps To Reproduce | patch attached - assumes that the data entry screen doesn't provide the option to newly upload files that were not already there | ||||
| Tags | No tags attached. | ||||
| Attached Files | dataEntry-fileupload.patch (1,040 bytes)
# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: C:\xampp\htdocs\limesurvey\admin
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: dataentry.php
--- dataentry.php Base (BASE)
+++ dataentry.php Locally Modified (Based On LOCAL)
@@ -997,7 +997,7 @@
break;
case "|": //FILE UPLOAD
$dataentryoutput .= "<table>\n";
- if ($fname['aid']!=='filecount')
+ if ($fname['aid']!=='filecount' && isset($idrow[$fname['fieldname'] . '_filecount']) && ($idrow[$fname['fieldname'] . '_filecount'] > 0))
{//file metadata
$metadata = json_decode($idrow[$fname['fieldname']], true);
$qAttributes = getQuestionAttributes($fname['qid']);
| ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | 10280 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | Mysql | ||||
| Server OS (if known) | Windows XP | ||||
| Webserver software & version (if known) | Apache 2 | ||||
| PHP Version | 5 | ||||
| Git branch / Pull Request URL | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-06-17 22:26 | TMSWhite | New Issue | |
| 2011-06-17 22:26 | TMSWhite | File Added: dataEntry-fileupload.patch | |
| 2011-06-18 13:33 | c_schmitz | Assigned To | => TMSWhite |
| 2011-06-18 13:33 | c_schmitz | Status | new => assigned |
| 2011-06-18 20:51 | TMSWhite | Status | assigned => resolved |
| 2011-06-18 20:51 | TMSWhite | Fixed in Version | => 1.91+ |
| 2011-06-18 20:51 | TMSWhite | Resolution | open => fixed |
| 2011-06-21 14:31 | c_schmitz | Note Added: 15541 | |
| 2011-06-21 14:31 | c_schmitz | Status | resolved => closed |