Skip to content

Firefly III: a personal finances manager

Small bug fix in map / roles.

James Cole83b721a322c0
diff --git a/app/Support/Import/Configuration/Csv/Map.php b/app/Support/Import/Configuration/Csv/Map.php
index fd038857bd..9c0b118c87 100644
--- a/app/Support/Import/Configuration/Csv/Map.php
+++ b/app/Support/Import/Configuration/Csv/Map.php
@@ -235,7 +235,7 @@ class Map implements ConfigurationInterface
{
// run specifics here:
// and this is the point where the specifix go to work.
- $names = array_keys($this->configuration['specifics']);
+ $names = array_keys($this->job->configuration['specifics']);
foreach ($names as $name) {
if (!in_array($name, $this->validSpecifics)) {
throw new FireflyException(sprintf('"%s" is not a valid class name', $name));
diff --git a/app/Support/Import/Configuration/Csv/Roles.php b/app/Support/Import/Configuration/Csv/Roles.php
index f75c82f4bc..64b3b165b7 100644
--- a/app/Support/Import/Configuration/Csv/Roles.php
+++ b/app/Support/Import/Configuration/Csv/Roles.php
@@ -228,7 +228,7 @@ class Roles implements ConfigurationInterface
*/
private function processSpecifics(array $row): array
{
- $names = array_keys($this->configuration['specifics']);
+ $names = array_keys($this->job->configuration['specifics']);
foreach ($names as $name) {
/** @var SpecificInterface $specific */
$specific = app('FireflyIII\Import\Specifics\\' . $name);