[Koha-bugs] [Bug 9374] In baskets, prices between 0 and 1 are displayed in red
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 20 09:43:29 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9374
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #21250|0 |1
is obsolete| |
--- Comment #4 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 21265
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=21265&action=edit
Bug 9374: Only 0.00 prices must have class error in basket.tt
A regexp '^0' in basket.tt is used to give the class "error" to null prices.
It is wrong, because it matches prices like "0.15". It should only match
"0.00".
To test :
- apply the patch
- display a basket with an order with a price between 0 and 1 (like "0.50") and
an order with a price stricty null ("0.00")
- only the "0.00" price should be displayed in red
Signed-off-by: Cedric Vita <cedric.vita at dracenie.com>
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list