Skip to content

Commit

Permalink
Transmogrify fix group caching (CFM-385)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda authored and arlen committed May 3, 2024
1 parent 3224937 commit 4e06287
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/Command/TransmogrifyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,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

0 comments on commit 4e06287

Please sign in to comment.