mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-07-16 02:23:15 +02:00
Rework filter handling to overcome static map identifier setting.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper;
|
||||
|
||||
use Netzmacht\Contao\Leaflet\Filter\Filter;
|
||||
use Netzmacht\Contao\Leaflet\Request\Request;
|
||||
|
||||
/**
|
||||
* Class AbstractTypeMapper is the base mapper for tables containing different types of definitins.
|
||||
@@ -31,7 +31,7 @@ abstract class AbstractTypeMapper extends AbstractMapper
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function match($model, Filter $filter = null)
|
||||
public function match($model, Request $request = null)
|
||||
{
|
||||
return parent::match($model) && $model->type === static::$type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user