Skip to content

Commit

Permalink
Merge pull request #18079 from eileenmcnaughton/528
Browse files Browse the repository at this point in the history
dev/core#1930 fix for move-related checkbox being overridden to true …
  • Loading branch information
seamuslee001 authored Aug 6, 2020
2 parents c2d2fa2 + ae57dda commit 2a96c7c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CRM/Contact/Form/Merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function preProcess() {

// add related table elements
foreach ($rowsElementsAndInfo['rel_table_elements'] as $relTableElement) {
$element = $this->addElement($relTableElement[0], $relTableElement[1]);
$element->setChecked(TRUE);
$this->addElement($relTableElement[0], $relTableElement[1]);
$this->_defaults[$relTableElement[1]] = 1;
}

$this->assign('rel_tables', $rowsElementsAndInfo['rel_tables']);
Expand Down Expand Up @@ -414,4 +414,14 @@ protected function assignSummaryRowsToTemplate($contacts) {
]);
}

/**
* Set the defaults for the form.
*
* @return array
* Array of default values
*/
public function setDefaultValues() {
return $this->_defaults;
}

}

0 comments on commit 2a96c7c

Please sign in to comment.