Skip to content

Commit

Permalink
Dev Small fix for file upload in data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 6, 2013
1 parent 6ba48e1 commit 1bd2037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/dataentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ public function editdata($subaction, $id, $surveyid, $language='')
{//file metadata
$metadata = json_decode($idrow[$fname['fieldname']], true);
$qAttributes = getQuestionAttributeValues($fname['qid']);
for ($i = 0; $i < $qAttributes['max_num_of_files'], isset($metadata[$i]); $i++)
for ($i = 0; $i < $qAttributes['max_num_of_files']; $i++)
{
if ($qAttributes['show_title'])
$aDataentryoutput .= '<tr><td>Title </td><td><input type="text" class="'.$fname['fieldname'].'" id="'.$fname['fieldname'].'_title_'.$i .'" name="title" size=50 value="'.htmlspecialchars($metadata[$i]["title"]) .'" /></td></tr>';
Expand Down

0 comments on commit 1bd2037

Please sign in to comment.