Skip to content
Snippets Groups Projects
Commit 21644b42 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2461047 by chx: Simplify SourcePluginBase a tiny bit

parent a7391662
No related branches found
No related tags found
No related merge requests found
......@@ -303,13 +303,12 @@ public function rewind() {
public function next() {
$this->currentSourceIds = NULL;
$this->currentRow = NULL;
$source_configuration = $this->migration->get('source');
// In order to find the next row we want to process, we ask the source
// plugin for the next possible row.
while (!isset($this->currentRow) && $this->getIterator()->valid()) {
$row_data = $this->getIterator()->current() + $source_configuration;
$row_data = $this->getIterator()->current() + $this->configuration;
$this->getIterator()->next();
$row = new Row($row_data, $this->migration->getSourcePlugin()->getIds(), $this->migration->get('destinationIds'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment