Move search operators to dedicated file and add lots of new ones.

This commit is contained in:
James Cole
2022-03-20 07:42:39 +01:00
parent c000e090fe
commit ba10aa5ca5
12 changed files with 355 additions and 218 deletions

View File

@@ -79,7 +79,7 @@ trait RuleManagement
protected function getPreviousTriggers(Request $request): array
{
// See reference nr. 34
$operators = config('firefly.search.operators');
$operators = config('search.operators');
$triggers = [];
foreach ($operators as $key => $operator) {
if ('user_action' !== $key && false === $operator['alias']) {
@@ -124,7 +124,7 @@ trait RuleManagement
protected function parseFromOperators(array $submittedOperators): array
{
// See reference nr. 35
$operators = config('firefly.search.operators');
$operators = config('search.operators');
$renderedEntries = [];
$triggers = [];
foreach ($operators as $key => $operator) {