]> git.koha-community.org Git - koha.git/commit
Bug 9374: Only 0.00 prices must have class error in basket.tt
authorMathieu Saby <mathieu.saby@univ-rennes2.fr>
Sun, 15 Sep 2013 11:09:20 +0000 (13:09 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Dec 2013 18:47:25 +0000 (15:47 -0300)
commitf16fad109ea699329c4730a3d8bbd75e3cccf164
treedf5c2d4ea1b7cae2984064abbe1de3a21084f741
parentacdf4eaae98e9d16f6d94533343a7150d38f73ee
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@dracenie.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit cbe0d7bebdd0de8e15d1f5fe3cb12da3160baa64)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt