Skip to content

Commit

Permalink
Fixed issue #11513: Error 500 after uploading a CSV file with partici…
Browse files Browse the repository at this point in the history
…pants into a survey

Dev: removed tracevar, because it just works on unix-based systems
  • Loading branch information
markusfluer committed Aug 2, 2016
1 parent 1f56a53 commit 5ff1e39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/controllers/admin/tokens.php
Expand Up @@ -2424,8 +2424,8 @@ public function import($iSurveyId)
}
if (!$oToken->save())
{
tracevar($oToken->getErrors());
$aModelErrorList[] = sprintf(gT("Line %s : %s"),$iRecordCount,Chtml::errorSummary($oToken));
$errors = ($oToken->getErrors());
$aModelErrorList[] = sprintf(gT("Line %s : %s"),$iRecordCount,print_r($errors,true));
}
else
{
Expand Down

1 comment on commit 5ff1e39

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tracevar only for *nix based ? Why ? What is the issue ? Or it's the $oToken->getErrors() ?

Else : Chtml::errorSummary seem cool, why remove oit ?

Please sign in to comment.