Skip to content

Commit

Permalink
Fixed issue: Repeat headings count was off by one for first block of …
Browse files Browse the repository at this point in the history
…subqestions
  • Loading branch information
c-schmitz committed Mar 29, 2021
1 parent dd0977b commit d604b06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function getNonDropdownRows()
{
$aRows = [];
foreach ($this->aSubQuestions[0] as $i => $oQuestion) {
if ($this->repeatheadings > 0 && ($i - 1) > 0 && ($i - 1) % $this->repeatheadings == 0) {
if (($this->repeatheadings > 0) && ($i > 0) && ($i % $this->repeatheadings == 0)) {
if (($this->getQuestionCount() - $i + 1) >= $this->minrepeatheadings) {
// Close actual body and open another one
$aRows[] = [
Expand Down

0 comments on commit d604b06

Please sign in to comment.