Closed (fixed)
Project:
Date
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2007 at 12:02 UTC
Updated:
22 Mar 2007 at 14:46 UTC
I created a view with exposed filter 'Year' for datestamp field. When user enter non-numeric value to this field, the error appears.
Comments
Comment #1
karens commentedWhy would you enter non-numeric data for the year?? Sounds to me like it is an error if you do so.
Comment #2
nilard commentedI think that is not good when guest makes casual mistake in numeric field and gets urgly PHP Fatal error instead of empty results page.
Here is my way of fixing this in date_views.inc:
Comment #3
nilard commentedSeems to be fixed in 1.3
But I had the same problem with filtering on partial dates as in http://drupal.org/node/124183
So I took date_views.inc from 1.2 and changed all
include_once(drupal_get_path('module', 'date') .'/date.inc');toinclude_once(drupal_get_path('module', 'date_api') .'/date.inc');within it. Now it works for me.Comment #4
karens commentedI don't understand marking this postponed and switching versions. That seems to have nothing to do with the original issue.
The original issue should be fixed with the latest commit -- validation has been added so no SQL is created for invalid input values.
Comment #5
(not verified) commented