Skip to content
Snippets Groups Projects
Commit 3e74c530 authored by jaapjansma's avatar jaapjansma
Browse files

fixed issue with not empty case role filter

parent f8dad3a1
No related branches found
No related tags found
No related merge requests found
# Version 1.16 (not yet released)
* Fixed blank worldregion in CVS output #52
* Fixed issue with not empty case role filter.
# Version 1.15.1
......
......@@ -333,24 +333,20 @@ abstract class AbstractFilterHandler {
break;
case 'null':
if (empty($submittedValues['value'])) {
$filterParams = [
'op' => 'IS NULL',
'value' => '',
];
$this->setFilter($filterParams);
$isFilterSet = TRUE;
}
$filterParams = [
'op' => 'IS NULL',
'value' => '',
];
$this->setFilter($filterParams);
$isFilterSet = TRUE;
break;
case 'not null':
if (empty($submittedValues['value'])) {
$filterParams = [
'op' => 'IS NOT NULL',
'value' => '',
];
$this->setFilter($filterParams);
$isFilterSet = TRUE;
}
$filterParams = [
'op' => 'IS NOT NULL',
'value' => '',
];
$this->setFilter($filterParams);
$isFilterSet = TRUE;
break;
case 'bw':
if (isset($submittedValues['min']) && $submittedValues['min'] && isset($submittedValues['max']) && $submittedValues['max']) {
......
......@@ -29,7 +29,7 @@
CRM.$(function($) {
cj("#{/literal}{$fieldOp}{literal}").change(function() {
var val = $(this).val();
if (val == 'current_user' || val == 'null' || val == 'is null') {
if (val == 'current_user' || val == 'null' || val == 'not null') {
cj("#{/literal}{$filterVal}{literal}").addClass('hiddenElement');
} else {
cj("#{/literal}{$filterVal}{literal}").removeClass('hiddenElement');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment