Skip to content

Commit

Permalink
Steps Filter (joomla#96)
Browse files Browse the repository at this point in the history
unsets the tour_id from the active filters so that the searchtools open in a closed state
  • Loading branch information
brianteeman authored Feb 14, 2023
1 parent 3906c2f commit bdc02ba
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ public function display($tpl = null)
throw new GenericDataException(implode("\n", $errors), 500);
}

// Unset the tour_id field from activeFilters as we don't filter by tour here.
unset($this->activeFilters['tour_id']);

$tour_id = $this->state->get('filter.tour_id');
$this->isLocked = Multilanguage::isEnabled() && StepHelper::getTourLocked($tour_id);

Expand Down

0 comments on commit bdc02ba

Please sign in to comment.