Skip to content

Transmogrify fix group caching (CFM-385) #183

Merged
merged 1 commit into from
May 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/src/Command/TransmogrifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,10 @@ protected function cacheResults(string $table, array $row) {

$this->cache[$table][$label][$key] = $row['id'];
} else {
// Map id to the requested field
$this->cache[$table]['id'][ $row['id'] ][$field] = $row[$field];
// If the row has the field then map id to the requested field.
if(array_key_exists($field, $row)) {
$this->cache[$table]['id'][ $row['id'] ][$field] = $row[$field];
}
}
}
}
Expand Down