Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 Oct 2010 at 08:51 UTC
Updated:
20 Oct 2010 at 05:50 UTC
Jump to comment: Most recent file
The docblock says:
/**
* Simple filter to handle greater than/less than filters.
* It based on views_handler_filter_numeric but deals with
* float numbers.
*/
However, the functions it overrides (op_simple, op_between) are the same both in the parent and in this class.
This is a result of porting, since Views 6.x-3.x has different code in there, for example:
$this->query->add_where($this->options['group'], "$field >= %f", $this->value['min']);
So, we should kill this file and use views_handler_filter_numeric instead.
If no objections are raised, I'll provide a patch tonight.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 931886.patch | 2.93 KB | bojanz |
| #7 | 931886.patch | 3.13 KB | bojanz |
| #5 | 931886.patch | 3.13 KB | bojanz |
Comments
Comment #1
dawehnerThe reason is that dbtng now handles the placeholders/escaping for us. Perhaps this should be documented because some people will use it.
Comment #2
bojanz commentedWe have an UPGRADING topic in advanced help (which we added when we killed hook_views_handlers()), I'll add a note there.
Comment #5
bojanz commentedHere's a patch.
Comment #6
dawehnerMh
Comment #7
bojanz commentedAnd now?
Tested myself with the latest git checkout of 7.x-3.x, patch -p0 does the job.
Edit: Looks like it's the same as the old one... Not sure why the patch utility is complaining.
Edit2: and it fails with a CVS checkout. Bah
Comment #8
bojanz commentedRolled the patch using CVS.
You'll have to remove the float handler manually, since CVS diff is retarded.
Comment #9
dawehnerokay don't mind. I manually made the changes.
Thanks!!
Comment #10
dawehneri made my changes after #7 sorry ;)
Comment #11
bojanz commentedThanks! I don't see the file itself removed in the commit, can you check if it's in the repository?
Comment #12
dawehnerThanks! I love cvs.