Skip to content

Commit

Permalink
Fixed issue #9016: Redundant "File count" text before actual value di…
Browse files Browse the repository at this point in the history
…splayed in response records
  • Loading branch information
c-schmitz committed May 2, 2014
1 parent f3e52c0 commit c83beb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/responses.php
Expand Up @@ -489,7 +489,7 @@ function browse($iSurveyID)
}
else
{
$fnames[] = array($fielddetails['fieldname'], $clang->gT("File count"));
$fnames[] = array($fielddetails['fieldname'], $clang->gT("File count"), 'code'=>viewHelper::getFieldCode($fielddetails));
}
}

Expand Down
4 changes: 1 addition & 3 deletions application/helpers/common_helper.php
Expand Up @@ -1758,9 +1758,7 @@ function getExtendedAnswer($iSurveyID, $sFieldCode, $sValue, $oLanguage)
}
break;
case "|": //File upload
if (substr($sFieldCode, -9) == 'filecount') {
$this_answer = $oLanguage->gT("File count");
} else {
if (substr($sFieldCode, -9) != 'filecount') {
//Show the filename, size, title and comment -- no link!
$files = json_decode($sValue);
$sValue = '';
Expand Down

0 comments on commit c83beb6

Please sign in to comment.