Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Views integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2013 at 22:02 UTC
Updated:
2 Mar 2013 at 15:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
rszrama commentedAs an argument it is; I see that for the filter it's string, but is it also for the sort? What use cases are you talking about?
Comment #2
geek-merlinPatch flying in.
It's trivial and working in production, so daring to rtbc (maintainer may feel free to bump back if disagree).
Comment #3
geek-merlinah, ok - our posts had a race condition.
use cases / problems:
* filter "line item id <99" is not possible
* click sort is not numeric (1,15,2,...)
for me the filter thing was a real showstopper, the other a nice side effect.
(as of sort: sort happens in the db, so a sort handler is not typed. db knows its fields.)
Comment #4
rszrama commentedDo you have the same issue then with the customer profile ID, order ID, and product ID, since their handlers extend views_handler_field instead of views_handler_numeric? Though looking at the core entity Views handlers, they also extend views_handler_field. Maybe it's not an issue for them?
Comment #5
rszrama commentedIn the absence of feedback, I'll commit this as is, since I haven't heard of problems with the other IDs. Also, I checked, and the payment transaction Views integration already used views_handler_field_numeric.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/7ad17bc
Comment #6
geek-merlin> Do you have the same issue then with the customer profile ID, order ID, and product ID...?
order id really? can't believe i didn't bump into that.
if they are not numeric, i'll fix that as soon as i bump into it.
;-)
Comment #7
rszrama commentedThe filter is numeric, it's just the field handler itself that extends a different base field. But if it hasn't been an issue, I doubt it's an issue. As I said, we're following the same pattern for those entity ID fields as core uses.