diff --git a/src/TableReader.php b/src/TableReader.php index 71023e3..9cce5c7 100644 --- a/src/TableReader.php +++ b/src/TableReader.php @@ -81,6 +81,7 @@ protected function resolveOptions(array $options): array 'columns' => [], 'encoding' => null, 'editMode' => null, + 'ignoreDeleted' => true, ], $options); } @@ -155,6 +156,9 @@ public function nextRecord(): ?RecordInterface if ($this->record->isDeleted()) { $this->deleteCount++; + if($this->table->options['ignoreDeleted'] === false) { + $valid = true; + } } else { $valid = true; } @@ -219,6 +223,9 @@ public function previousRecord(): ?RecordInterface if ($this->record->isDeleted()) { $this->deleteCount++; + if($this->table->options['ignoreDeleted'] === false) { + $valid = true; + } } else { $valid = true; }