Skip to content

Commit

Permalink
CRM-21126: fix default selection of member_is_primary input
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitendra Purohit committed Aug 30, 2017
1 parent 4782a39 commit 0b58584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Member/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ public function fixFormValues() {

//LCD also allow restrictions to membership owner via GET
$owner = CRM_Utils_Request::retrieve('owner', 'String');
if ($owner) {
$this->_formValues['member_is_primary'] = $this->_defaults['member_is_primary'] = 2;
if (!is_null($owner)) {
$this->_formValues['member_is_primary'] = $this->_defaults['member_is_primary'] = $owner;
}
}

Expand Down

0 comments on commit 0b58584

Please sign in to comment.