mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-21 19:49:54 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -393,11 +393,11 @@ class SingleController extends Controller
|
||||
|
||||
// store the journal only, flash the rest.
|
||||
Log::debug(sprintf('Count of error messages is %d', $this->attachments->getErrors()->count()));
|
||||
if (\count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
if (count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
session()->flash('error', $this->attachments->getErrors()->get('attachments'));
|
||||
}
|
||||
// flash messages
|
||||
if (\count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
if (count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
session()->flash('info', $this->attachments->getMessages()->get('attachments'));
|
||||
}
|
||||
|
||||
@@ -460,10 +460,10 @@ class SingleController extends Controller
|
||||
$this->attachments->saveAttachmentsForModel($journal, $files);
|
||||
|
||||
// @codeCoverageIgnoreStart
|
||||
if (\count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
if (count($this->attachments->getErrors()->get('attachments')) > 0) {
|
||||
session()->flash('error', $this->attachments->getErrors()->get('attachments'));
|
||||
}
|
||||
if (\count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
if (count($this->attachments->getMessages()->get('attachments')) > 0) {
|
||||
session()->flash('info', $this->attachments->getMessages()->get('attachments'));
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
|
Reference in New Issue
Block a user