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
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.

AttachmentSize
fivestar_views_round.patch343 bytes

#1

ezra-g - October 4, 2009 - 16:02
Status:needs review» fixed

Looks good to me. This is committed. Thanks!

#2

System Message - October 18, 2009 - 16:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.