Skip to content
Snippets Groups Projects
Commit 2d277075 authored by JediKev's avatar JediKev
Browse files

issue: SelectionField nset

This addresses an issue where creating an advanced search with selection
field "does not have a value" throws a fatal error. This was due to an
improperly named search method "notset".
parent 84943083
No related branches found
No related tags found
No related merge requests found
......@@ -1786,7 +1786,7 @@ class SelectionField extends FormField {
function getSearchMethods() {
return array(
'set' => __('has a value'),
'notset' => __('does not have a value'),
'nset' => __('does not have a value'),
'includes' => __('includes'),
'!includes' => __('does not include'),
);
......@@ -1795,7 +1795,7 @@ class SelectionField extends FormField {
function getSearchMethodWidgets() {
return array(
'set' => null,
'notset' => null,
'nset' => null,
'includes' => array('ChoiceField', array(
'choices' => $this->getChoices(),
'configuration' => array('multiselect' => true),
......
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