View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05283Bug reportsResponse browsingpublic2011-06-21 14:31
ReporterTMSWhite Assigned ToTMSWhite  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91+ 
Fixed in Version1.91+ 
Summary05283: 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

TagsNo 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']);
dataEntry-fileupload.patch (1,040 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)10280
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)Windows XP
Webserver software & version (if known)Apache 2
PHP Version5

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-06-21 14:31

administrator   ~15541

New version released.

Issue History

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