From c988c41b84d063fd8f48b8250c29fdbb36f9c831 Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Tue, 7 Sep 2021 17:14:06 +1000 Subject: [PATCH 1/2] chore: Remove unnecessary interface includes --- fields/field.textbox.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/fields/field.textbox.php b/fields/field.textbox.php index baa94e0..9f5f2f1 100755 --- a/fields/field.textbox.php +++ b/fields/field.textbox.php @@ -6,10 +6,7 @@ if (!defined('__IN_SYMPHONY__')) die('

Symphony Error

You cannot directly access this file

'); - require_once TOOLKIT . '/class.xsltprocess.php'; require_once EXTENSIONS . '/textboxfield/extension.driver.php'; - require_once FACE . '/interface.exportablefield.php'; - require_once FACE . '/interface.importablefield.php'; /** * An enhanced text input field. From 7dedb905cdaa876f04b5f168d93a1a1c14841db0 Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Mon, 23 Oct 2023 15:08:01 +1000 Subject: [PATCH 2/2] feat: Place 'contains' and 'not-contains' first in list of filterable operators --- fields/field.textbox.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/fields/field.textbox.php b/fields/field.textbox.php index 9f5f2f1..7b8ef4a 100755 --- a/fields/field.textbox.php +++ b/fields/field.textbox.php @@ -736,6 +736,17 @@ public function prepareExportValue($data, $mode, $entry_id = null) { public function fetchFilterableOperators() { return array( + array( + 'title' => 'contains', + 'filter' => 'contains:', + 'help' => __('Find values that contain the given string.') + ), + array( + 'title' => 'not-contains', + 'filter' => 'not-contains:', + 'help' => __('Find values that do not contain the given string.') + ), + array( 'title' => 'boolean', 'filter' => 'boolean:', @@ -762,17 +773,6 @@ public function fetchFilterableOperators() )) ), - array( - 'title' => 'contains', - 'filter' => 'contains:', - 'help' => __('Find values that contain the given string.') - ), - array( - 'title' => 'not-contains', - 'filter' => 'not-contains:', - 'help' => __('Find values that do not contain the given string.') - ), - array( 'title' => 'starts-with', 'filter' => 'starts-with:',