Skip to content

Commit

Permalink
Fixed issue #11844: Clicking 'Set Conditions' to enter conditions
Browse files Browse the repository at this point in the history
designer returns 500 error

Dev: Must use temp variable to access array from function in 5.3
  • Loading branch information
olleharstedt committed Nov 1, 2016
1 parent b33c48c commit 757e35b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/conditionsaction.php
Expand Up @@ -2013,7 +2013,8 @@ protected function getEditFormJavascript($subaction)
}
elseif (is_array($request->getPost('EDITcanswers'))) { // was a predefined answers post
$aViewUrls['output'] .= "\tdocument.getElementById('editTargetTab').value='#CANSWERSTAB';\n";
$aViewUrls['output'] .= "\t$('#canswersToSelect').val('".$request->getPost('EDITcanswers')[0]."');\n";
$EDITcanswers = $request->getPost('EDITcanswers');
$aViewUrls['output'] .= "\t$('#canswersToSelect').val('".$EDITcanswers[0]."');\n";
}

if ($request->getPost('csrctoken') != '') {
Expand Down

0 comments on commit 757e35b

Please sign in to comment.