Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Jan 19, 2017
1 parent f39941c commit 82ef30c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CRM/Profile/Page/Listings.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ public function preProcess() {
);

foreach ($this->_fields as $name => $field) {
$isRange = FALSE;
if ((substr($name, 0, 6) == 'custom') && !empty($field['is_search_range'])) {
$isRange = TRUE;
$from = CRM_Utils_Request::retrieve($name . '_from', 'String', $this);
$to = CRM_Utils_Request::retrieve($name . '_to', 'String', $this);
$value = array();
Expand Down Expand Up @@ -249,7 +247,7 @@ public function preProcess() {
if ($operator) {
$this->_params[$name . '_operator'] = $operator;
}
if ($isRange) {
if (substr($name, 0, 6) == 'custom') && !empty($field['is_search_range']) {
$this->_params += $value;
}
else {
Expand Down

0 comments on commit 82ef30c

Please sign in to comment.