From 2d277075942bd0c2d98f60ce634f2c2ab6b9b51b Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 21 Aug 2018 12:27:39 -0500 Subject: [PATCH] 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". --- include/class.dynamic_forms.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index ccbbfd220..207f7b5c1 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -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), -- GitLab