mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-15 12:36:32 +00:00
Fix cells cache not being reset when sorting the index
This commit is contained in:
@@ -165,6 +165,9 @@ class Cells
|
||||
if (!$this->indexSorted) {
|
||||
asort($this->index);
|
||||
$this->indexSorted = true;
|
||||
// Clear unsorted cache
|
||||
$this->indexKeysCache = null;
|
||||
$this->indexValuesCache = null;
|
||||
}
|
||||
|
||||
// Build or rebuild index keys cache
|
||||
@@ -185,6 +188,9 @@ class Cells
|
||||
if (!$this->indexSorted) {
|
||||
asort($this->index);
|
||||
$this->indexSorted = true;
|
||||
// Clear unsorted cache
|
||||
$this->indexKeysCache = null;
|
||||
$this->indexValuesCache = null;
|
||||
}
|
||||
|
||||
if ($this->indexValuesCache === null) {
|
||||
|
||||
Reference in New Issue
Block a user