Skip to content

Commit

Permalink
Fixed issue #11396: Expression manager in max_answers for ranking don…
Browse files Browse the repository at this point in the history
…'t show error

Dev: different page step
Dev: ranking.js must be fixed for same page
Dev: EM tips are empty if in same page .... must fix it before ranking.js
  • Loading branch information
Shnoulle committed Jun 16, 2016
1 parent 73017cf commit 0d0cbb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/helpers/qanda_helper.php
Expand Up @@ -1877,6 +1877,7 @@ function do_ranking($ia)
{
$max_answers = $max_subquestions;
}
$max_answers = LimeExpressionManager::ProcessString("{{$max_answers}}",$ia[0]);
// Get the max number of line needed
if(ctype_digit($max_answers) && intval($max_answers)<$max_subquestions)
{
Expand All @@ -1893,6 +1894,8 @@ function do_ranking($ia)
{
$min_answers = 0;
}
$min_answers = LimeExpressionManager::ProcessString("{{$min_answers}}",$ia[0]);

$answer = '';
// First start by a ranking without javascript : just a list of select box
// construction select box
Expand Down

0 comments on commit 0d0cbb3

Please sign in to comment.