当应用其他暴露的过滤器时,Drupal 8视图日期范围过滤器丢失

时间:2017-12-04 10:41:05

标签: date datetime drupal-views drupal-8 date-range

在Drupal 8中,我有一个视图名称事件,其中内容类型:事件。 使用两个外接过滤器Event Dateis between。活动日期的运营商Now的值为+2 yearsnow until the next 2 years。因此,当用户首次访问该页面时,它会显示Event Type默认的所有事件。

但是,当用户更改Event Date过滤器时,Any过滤器将丢失,并显示带有class Base { int b=10; public void show() { System.out.println("Base show() called"); } } class Derived extends Base { int b=20; public void show() { System.out.println("Derived show() called"); } } public class MainClass { public static void main(String[] args) { Base bb = new Derived();; bb.show(); System.out.println(bb.b); } } 选项的事件。

这是一个问题吗?因为,显示了过去的所有旧事件。

有人知道在应用其他过滤器后如何保持日期范围过滤器?

我使用了datetime_range模块,并在https://www.drupal.org/project/drupal/issues/2786577#comment-11860104使用#60修补了它,以启用带视图的日期范围过滤。 感谢

1 个答案:

答案 0 :(得分:0)

如果您选择default value

,请务必正确选择grouped filters单选按钮