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.

CommentFileSizeAuthor
#8 931886.patch2.93 KBbojanz
#7 931886.patch3.13 KBbojanz
#5 931886.patch3.13 KBbojanz

Comments

dawehner’s picture

The reason is that dbtng now handles the placeholders/escaping for us. Perhaps this should be documented because some people will use it.

bojanz’s picture

Assigned: Unassigned » bojanz

We have an UPGRADING topic in advanced help (which we added when we killed hook_views_handlers()), I'll add a note there.

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new3.13 KB

Here's a patch.

dawehner’s picture

Mh

 patch -p0 < 931886.patch
patching file handlers/views_handler_filter_float.inc
Reversed (or previously applied) patch detected!  Assume -R? [n] y
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file handlers/views_handler_filter_float.inc.rej
patching file help/api-upgrading.html
Hunk #1 FAILED at 1.
1 out of 2 hunks FAILED -- saving rejects to file help/api-upgrading.html.rej
patching file modules/field.views.inc
bojanz’s picture

StatusFileSize
new3.13 KB

And 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

bojanz’s picture

StatusFileSize
new2.93 KB

Rolled the patch using CVS.
You'll have to remove the float handler manually, since CVS diff is retarded.

dawehner’s picture

Status: Needs review » Fixed

okay don't mind. I manually made the changes.
Thanks!!

dawehner’s picture

i made my changes after #7 sorry ;)

bojanz’s picture

Thanks! I don't see the file itself removed in the commit, can you check if it's in the repository?

dawehner’s picture

Thanks! I love cvs.

Status: Fixed » Closed (fixed)

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