Skip to content

Commit

Permalink
ObjectSuggestions: Consider deleted column for value suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jun 24, 2024
1 parent 69d8c7c commit efc3610
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ protected function createQuickSearchFilter($searchTerm)
protected function fetchValueSuggestions($column, $searchTerm, Filter\Chain $searchFilter)
{
$model = $this->getModel();
$query = $model::on(Database::get());
$query->limit(static::DEFAULT_LIMIT);
$query = $model::on(Database::get())
->limit(static::DEFAULT_LIMIT);

if (in_array('deleted', $model->getColumns())) {
$query->filter(Filter::equal('deleted', 'n'));
}

if (strpos($column, ' ') !== false) {
// $column may be a label
Expand Down

0 comments on commit efc3610

Please sign in to comment.