mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 18:41:08 +00:00
Fixed some problems.
This commit is contained in:
@@ -128,7 +128,6 @@ class Importer
|
||||
// post processing and validating.
|
||||
$data = $this->postProcess($data, $row);
|
||||
$result = $this->validateData($data);
|
||||
$journal = null;
|
||||
if ($result === true) {
|
||||
$journal = $this->createTransactionJournal($data);
|
||||
} else {
|
||||
@@ -274,6 +273,7 @@ class Importer
|
||||
$journal->save();
|
||||
} else {
|
||||
$text = join(',', $errors->all());
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
@@ -106,7 +106,6 @@ class CsvController extends Controller
|
||||
'date-format' => Session::get('date-format'),
|
||||
'has-headers' => Session::get('csv-has-headers')
|
||||
];
|
||||
// $fields = ['csv-file', 'csv-date-format', 'csv-has-headers', 'csv-map', 'csv-roles', 'csv-mapped'];
|
||||
if (Session::has('csv-map')) {
|
||||
$data['map'] = Session::get('csv-map');
|
||||
}
|
||||
|
@@ -349,7 +349,6 @@ class ExpandedForm
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param null $value
|
||||
* @param array $options
|
||||
*
|
||||
* @return string
|
||||
|
@@ -59,7 +59,7 @@ class FireflyValidator extends Validator
|
||||
* @param $value
|
||||
* @param $parameters
|
||||
*/
|
||||
public function validateIban($attribute, $value, $parameters)
|
||||
public function validateIban($attribute, $value)
|
||||
{
|
||||
|
||||
$value = strtoupper($value);
|
||||
|
Reference in New Issue
Block a user