/** * Sets the filter options for this item. * * @param array $filter */ public function setFilter($filter) { parent::setFilter($filter); $minValue = $this->getOption('min_value'); $maxValue = $this->getOption('max_value'); $this->userOptions['min_value'] = $minValue ? str_replace(',', '', $minValue) : $minValue; $this->userOptions['max_value'] = $maxValue ? str_replace(',', '', $maxValue) : $maxValue; }