I am attempting to create a view of nodes with a display summary based on a date field (i.e. cck content: date field not node created or update time). The output comes out summarised but not appropriately grouped according to granularity as shown below:

December, 2011 (1)
December, 2011 (1)
December, 2011 (1)
November, 2011 (1)
November, 2011 (1)
November, 2011 (1)
November, 2011 (1)
October, 2011 (1)
October, 2011 (1)
October, 2011 (1)
October, 2011 (1)

Browsing through the logs I see this error message whenever I am editing my view and previewing the results:

Location: http://server_X/admin/structure/views/ajax/config-item/view_X/default/argument/field_X_date_value
Message: Notice: Undefined index: type in views_handler_argument->default_summary_form() (line 571 of /var/www/sites/all/modules/views/handlers/views_handler_argument.inc).

I suspect this is date module related as if I were to use instead a display summary of "node date created" or "node date updated" the behaviour is as expected (i.e. summarised with appropriate grouping by granularity)

The display summary settings include:

  • Sort order is descending
  • Sorted by date
  • Format is by list
  • Display record count checked
  • Granularity set at month

My environment is:

  • Drupal 7.4, PHP 5.3
  • Views 7.x-3.x-dev (2011-Jul-02)
  • CTools 7.x-1.x-dev (2011-Jun-24)
  • Date 7.x-2.x-dev (2011-Jul-02)

Possible related threads to this bug:

Comments

Fajan’s picture

This bug looks uncannily similar to the above - #342224: Summary, sorted ascending/descending Views by Date don't work

Anonymous’s picture

I'm running into this same problem. I'm not running into the error on view, but my summary is definitely seeing duplicates. I have this view filtered by posts with a date field "less than or equal to now" and thought that might be contributing, but removing this filter had no effect. Similarly, removing any sorting based on the date field has no effect.

I want to say that I wasn't seeing these duplicates when I originally set up this view (I was running Drupal 7.0 at that time and some earlier beta of Views and Date), but I can't say for certain that this is the case. It's quite possible I simply hadn't entered enough content at that point to encounter the duplications.

Fajan’s picture

Bug - #1223826: Contextual filter on Content: date_field has issues - is also describing a similar behavior to above.

karens’s picture

Status: Active » Fixed

Fixed in latest dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.