Skip to content

Commit

Permalink
Fixed corner case issue with CDD element's in a repeat group when ren…
Browse files Browse the repository at this point in the history
…dered in a PDF attached in email plugin.
  • Loading branch information
cheesegrits committed Dec 22, 2016
1 parent 0d50904 commit 11ee4f2
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -613,13 +613,14 @@ protected function showPleaseSelect()
* Get the full name of the element to observe. When this element changes
* state, the cdd should perform an ajax lookup to update its options
*
* @param bool $repeat include repeat []
* @return string
*/
protected function getWatchFullName()
protected function getWatchFullName($repeat = true)
{
$elementModel = $this->getWatchElement();

return $elementModel->getFullName();
return $elementModel->getFullName(true, $repeat);
}

/**
Expand Down Expand Up @@ -704,7 +705,7 @@ protected function buildQuery($data = array(), $incWhere = true, $opts = array()
}

$params = $this->getParams();
$watch = $this->getWatchFullName();
$watch = $this->getWatchFullName(false);
$whereVal = null;
$groups = $this->getFormModel()->getGroupsHiarachy();
$formModel = $this->getFormModel();
Expand Down

0 comments on commit 11ee4f2

Please sign in to comment.