mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Auto commit for release 'develop' on 2025-01-05
This commit is contained in:
@@ -89,14 +89,14 @@ class CreateController extends Controller
|
||||
// build triggers from query, if present.
|
||||
$query = (string) $request->get('from_query');
|
||||
if ('' !== $query) {
|
||||
$search = app(SearchInterface::class);
|
||||
$search = app(SearchInterface::class);
|
||||
$search->parseQuery($query);
|
||||
$words = $search->getWords();
|
||||
$excludedWords = $search->getExcludedWords();
|
||||
$operators = $search->getOperators()->toArray();
|
||||
$words = $search->getWords();
|
||||
$excludedWords = $search->getExcludedWords();
|
||||
$operators = $search->getOperators()->toArray();
|
||||
if (count($words) > 0) {
|
||||
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => implode('', $words)]));
|
||||
foreach($words as $word) {
|
||||
foreach ($words as $word) {
|
||||
$operators[] = [
|
||||
'type' => 'description_contains',
|
||||
'value' => $word,
|
||||
@@ -105,14 +105,14 @@ class CreateController extends Controller
|
||||
}
|
||||
if (count($excludedWords) > 0) {
|
||||
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => implode('', $excludedWords)]));
|
||||
foreach($excludedWords as $excludedWord) {
|
||||
foreach ($excludedWords as $excludedWord) {
|
||||
$operators[] = [
|
||||
'type' => '-description_contains',
|
||||
'value' => $excludedWord,
|
||||
];
|
||||
}
|
||||
}
|
||||
$oldTriggers = $this->parseFromOperators($operators);
|
||||
$oldTriggers = $this->parseFromOperators($operators);
|
||||
}
|
||||
// var_dump($oldTriggers);exit;
|
||||
|
||||
|
@@ -85,14 +85,14 @@ class EditController extends Controller
|
||||
// build triggers from query, if present.
|
||||
$query = (string) $request->get('from_query');
|
||||
if ('' !== $query) {
|
||||
$search = app(SearchInterface::class);
|
||||
$search = app(SearchInterface::class);
|
||||
$search->parseQuery($query);
|
||||
$words = $search->getWords();
|
||||
$excludedWords = $search->getExcludedWords();
|
||||
$operators = $search->getOperators()->toArray();
|
||||
$words = $search->getWords();
|
||||
$excludedWords = $search->getExcludedWords();
|
||||
$operators = $search->getOperators()->toArray();
|
||||
if (count($words) > 0) {
|
||||
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => implode('', $words)]));
|
||||
foreach($words as $word) {
|
||||
foreach ($words as $word) {
|
||||
$operators[] = [
|
||||
'type' => 'description_contains',
|
||||
'value' => $word,
|
||||
@@ -101,14 +101,14 @@ class EditController extends Controller
|
||||
}
|
||||
if (count($excludedWords) > 0) {
|
||||
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => implode('', $excludedWords)]));
|
||||
foreach($excludedWords as $excludedWord) {
|
||||
foreach ($excludedWords as $excludedWord) {
|
||||
$operators[] = [
|
||||
'type' => '-description_contains',
|
||||
'value' => $excludedWord,
|
||||
];
|
||||
}
|
||||
}
|
||||
$oldTriggers = $this->parseFromOperators($operators);
|
||||
$oldTriggers = $this->parseFromOperators($operators);
|
||||
}
|
||||
// has old input?
|
||||
if (null !== $request->old() && is_array($request->old()) && count($request->old()) > 0) {
|
||||
|
Reference in New Issue
Block a user