#399: [Patch] AgaviDecimalFormatter strips sign of number to format
--------------------------------------------+-------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  david
     Type:  defect                          |      Status:  new  
 Priority:  normal                          |   Milestone:  0.11 
Component:  util                            |     Version:  HEAD 
 Severity:  normal                          |    Keywords:       
--------------------------------------------+-------------------------------
 The AgaviDecimalFormatter uses a regexp to take apart the number it should
 format. This regexp correctly parses the sign of the number but the rest
 of the formatting process never uses this information - so every negative
 amount becomes a positive one. This leads to some strange failures in
 validators as the numbervalidator never catches negative numbers if you
 specify a min value of 0 etc.

 Hope that happens to my bank account some day... The patch is trivial,
 nevertheless attached.

-- 
Ticket URL: <http://trac.agavi.org/ticket/399>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to