Skip to content

Commit

Permalink
Fixed issue: Cannot change page in survey list
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Mar 31, 2021
1 parent dfabc2c commit a8ca9b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -1527,7 +1527,7 @@ public function getbuttons()

if (Permission::model()->hasSurveyPermission($this->sid, 'survey', 'create')) {
if ($this->active != 'Y') {
$groupCount = QuestionGroup::model()->countByAttributes(array('sid' => $this->sid, 'language' => $this->language)); //Checked
$groupCount = QuestionGroup::model()->countByAttributes(array('sid' => $this->sid)); //Checked
if ($groupCount > 0) {
$button .= '<a class="btn btn-default" href="'.$sAddquestion.'" role="button" data-toggle="tooltip" title="'.gT('Add new question').'"><span class="icon-add text-success" ></span><span class="sr-only">'.gT('Add new question').'</span></a>';
} else {
Expand Down

0 comments on commit a8ca9b3

Please sign in to comment.