Skip to content

Commit

Permalink
Fixed issue #11794: Show scenario number when edit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 19, 2016
1 parent 6a432f9 commit eab5b99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion application/controllers/admin/conditionsaction.php
Expand Up @@ -2140,6 +2140,6 @@ protected function redirectToConditionStart($qid, $gid)
*/
protected function shouldShowScenario($subaction, $scenariocount)
{
return (($subaction != "editthiscondition" && ($scenariocount == 1 || $scenariocount==0)) || ($subaction == "editthiscondition"));
return $subaction != "editthiscondition" && ($scenariocount == 1 || $scenariocount==0);
}
}
Expand Up @@ -34,8 +34,6 @@
<span id='defaultscenariotxt'>
<?php eT("Default scenario"); ?>
</span>
<?php endif;?>
<?php if($showScenario):?>
&nbsp;
<button class='btn btn-default' id='scenarioaddbtn' onclick="scenarioaddbtnOnClickAction(); return false;" >
<span class='icon-add'></span>&nbsp;<?php eT('Add scenario'); ?>
Expand Down

0 comments on commit eab5b99

Please sign in to comment.