Skip to content
Snippets Groups Projects
Commit 3331b720 authored by Jared Hancock's avatar Jared Hancock
Browse files

Revert "filter: Fix filtering by list item properties"

This partially reverts commit bff191b6.
The hasSpecialSearch() method can be retired in `develop-next` — NOT in the
`develop` branch
parent 1a93ee0c
Branches
Tags
No related merge requests found
...@@ -594,6 +594,17 @@ class FormField { ...@@ -594,6 +594,17 @@ class FormField {
return null; return null;
} }
/**
* Indicates if the field provides for searching for something other
* than keywords. For instance, textbox fields can have hits by keyword
* searches alone, but selection fields should provide the option to
* match a specific value or set of values and therefore need to
* participate on any search builder.
*/
function hasSpecialSearch() {
return true;
}
function getConfigurationForm($source=null) { function getConfigurationForm($source=null) {
if (!$this->_cform) { if (!$this->_cform) {
$type = static::getFieldType($this->get('type')); $type = static::getFieldType($this->get('type'));
...@@ -688,6 +699,10 @@ class TextboxField extends FormField { ...@@ -688,6 +699,10 @@ class TextboxField extends FormField {
); );
} }
function hasSpecialSearch() {
return false;
}
function validateEntry($value) { function validateEntry($value) {
parent::validateEntry($value); parent::validateEntry($value);
$config = $this->getConfiguration(); $config = $this->getConfiguration();
...@@ -758,6 +773,10 @@ class TextareaField extends FormField { ...@@ -758,6 +773,10 @@ class TextareaField extends FormField {
); );
} }
function hasSpecialSearch() {
return false;
}
function display($value) { function display($value) {
$config = $this->getConfiguration(); $config = $this->getConfiguration();
if ($config['html']) if ($config['html'])
...@@ -810,6 +829,10 @@ class PhoneField extends FormField { ...@@ -810,6 +829,10 @@ class PhoneField extends FormField {
); );
} }
function hasSpecialSearch() {
return false;
}
function validateEntry($value) { function validateEntry($value) {
parent::validateEntry($value); parent::validateEntry($value);
$config = $this->getConfiguration(); $config = $this->getConfiguration();
...@@ -1108,6 +1131,9 @@ class ThreadEntryField extends FormField { ...@@ -1108,6 +1131,9 @@ class ThreadEntryField extends FormField {
function isPresentationOnly() { function isPresentationOnly() {
return true; return true;
} }
function hasSpecialSearch() {
return false;
}
function getConfigurationOptions() { function getConfigurationOptions() {
global $cfg; global $cfg;
...@@ -1428,6 +1454,10 @@ class FileUploadField extends FormField { ...@@ -1428,6 +1454,10 @@ class FileUploadField extends FormField {
); );
} }
function hasSpecialSearch() {
return false;
}
/** /**
* Called from the ajax handler for async uploads via web clients. * Called from the ajax handler for async uploads via web clients.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment