Skip to content

Commit

Permalink
Merge pull request COmanage#183 from skoranda/CFM-385
Browse files Browse the repository at this point in the history
Transmogrify fix group caching (CFM-385)
  • Loading branch information
skoranda authored May 1, 2024
2 parents 28c5be4 + bc89cd4 commit 326e580
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 326e580

Please sign in to comment.