mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-17 23:28:20 +00:00
Move search operators to dedicated file and add lots of new ones.
This commit is contained in:
@@ -116,7 +116,7 @@ trait ModelInformation
|
||||
protected function getTriggersForBill(Bill $bill): array // get info and augument
|
||||
{
|
||||
// See reference nr. 39
|
||||
$operators = config('firefly.search.operators');
|
||||
$operators = config('search.operators');
|
||||
$triggers = [];
|
||||
foreach ($operators as $key => $operator) {
|
||||
if ('user_action' !== $key && false === $operator['alias']) {
|
||||
@@ -168,7 +168,7 @@ trait ModelInformation
|
||||
private function getTriggersForJournal(TransactionJournal $journal): array
|
||||
{
|
||||
// See reference nr. 40
|
||||
$operators = config('firefly.search.operators');
|
||||
$operators = config('search.operators');
|
||||
$triggers = [];
|
||||
foreach ($operators as $key => $operator) {
|
||||
if ('user_action' !== $key && false === $operator['alias']) {
|
||||
|
||||
@@ -299,7 +299,7 @@ trait RenderPartialViews
|
||||
protected function getCurrentTriggers(Rule $rule): array // get info from object and present.
|
||||
{
|
||||
// See reference nr. 38
|
||||
$operators = config('firefly.search.operators');
|
||||
$operators = config('search.operators');
|
||||
$triggers = [];
|
||||
foreach ($operators as $key => $operator) {
|
||||
if ('user_action' !== $key && false === $operator['alias']) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user