Small bug fix in map / roles.

This commit is contained in:
James Cole
2017-08-12 16:41:05 +02:00
parent a879528ed8
commit 83b721a322
2 changed files with 2 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ class Map implements ConfigurationInterface
{ {
// run specifics here: // run specifics here:
// and this is the point where the specifix go to work. // 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) { foreach ($names as $name) {
if (!in_array($name, $this->validSpecifics)) { if (!in_array($name, $this->validSpecifics)) {
throw new FireflyException(sprintf('"%s" is not a valid class name', $name)); throw new FireflyException(sprintf('"%s" is not a valid class name', $name));

View File

@@ -228,7 +228,7 @@ class Roles implements ConfigurationInterface
*/ */
private function processSpecifics(array $row): array private function processSpecifics(array $row): array
{ {
$names = array_keys($this->configuration['specifics']); $names = array_keys($this->job->configuration['specifics']);
foreach ($names as $name) { foreach ($names as $name) {
/** @var SpecificInterface $specific */ /** @var SpecificInterface $specific */
$specific = app('FireflyIII\Import\Specifics\\' . $name); $specific = app('FireflyIII\Import\Specifics\\' . $name);