Skip to content

Commit

Permalink
Merge pull request Fabrik#1642 from bauer-git/patch-7
Browse files Browse the repository at this point in the history
Fix 'Undefined property: JForm::$repeatCounter'
  • Loading branch information
pollen8 committed May 13, 2016
2 parents 19c196e + 7dfcc16 commit 70a1638
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,14 @@ protected function getInput()
$xml = $this->element->children()->asXML();
$subForm->load($xml);
$j3 = FabrikWorker::j3();

if (!isset($this->form->repeatCounter))
{
$this->form->repeatCounter = 0;
}

// Needed for repeating modals in gmaps viz
$subForm->repeatCounter = (int) @$this->form->repeatCounter;
$subForm->repeatCounter = (int) $this->form->repeatCounter;

/**
* f3 hack
Expand Down Expand Up @@ -189,11 +194,6 @@ protected function getInput()
$modalRepeat[$modalId] = array();
}

if (!isset($this->form->repeatCounter))
{
$this->form->repeatCounter = 0;
}

if (!array_key_exists($this->form->repeatCounter, $modalRepeat[$modalId]))
{
// If loaded as js template then we don't want to repeat this again. (fabrik)
Expand Down

0 comments on commit 70a1638

Please sign in to comment.