Skip to content

Commit 454f553

Browse files
committed
Feat: Dataflow iterator needs an iterating value from json_reader
1 parent 369253a commit 454f553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/local/step/reader_json.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ protected function parse_json() {
8484
['data' => $decodedjson]
8585
);
8686

87+
if (!is_array($returnarray)) {
88+
$returnarray = (object) $returnarray;
89+
}
90+
8791
if (is_null($returnarray)) {
8892
throw new \moodle_exception(get_string('reader_json:failed_to_fetch_array',
8993
'tool_dataflows', $config->arrayexpression));

0 commit comments

Comments
 (0)