Make fivestar_views_value_text_handler() obey Views "Round" field option
Shawn DeArmond - October 2, 2009 - 20:00
| Project: | Fivestar |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The handler: fivestar_views_value_text_handler(), labeled "Fivestar Stars (text star count)", hardcodes a rounding function into the value. For statistical analysis purposes, it would be better if the value was a true float, and the user could specify the rounding precision in the View. Fortunately, Views 2 has that functionality, so here's a patch that utilizes it for this handler.
| Attachment | Size |
|---|---|
| fivestar_views_round.patch | 343 bytes |

#1
Looks good to me. This is committed. Thanks!
#2
Automatically closed -- issue fixed for 2 weeks with no activity.