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