From f9e4c33875572743e6b6cbc146396ecd9d1e6223 Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Mon, 5 May 2014 09:52:27 +0200 Subject: [PATCH] No % or money symbol in HTML generated by CouponAbstract --- core/lib/Thelia/Coupon/Type/CouponAbstract.php | 4 ++-- .../backOffice/default/coupon/type-fragments/remove-x.html | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 templates/backOffice/default/coupon/type-fragments/remove-x.html diff --git a/core/lib/Thelia/Coupon/Type/CouponAbstract.php b/core/lib/Thelia/Coupon/Type/CouponAbstract.php index 569fd7f43..c40bc9f88 100644 --- a/core/lib/Thelia/Coupon/Type/CouponAbstract.php +++ b/core/lib/Thelia/Coupon/Type/CouponAbstract.php @@ -93,7 +93,7 @@ abstract class CouponAbstract implements CouponInterface * * @param FacadeInterface $facade Service facade */ - public function __construct(FacadeInterface $facade) + protected function __construct(FacadeInterface $facade) { $this->facade = $facade; $this->translator = $facade->getTranslator(); @@ -355,7 +355,7 @@ abstract class CouponAbstract implements CouponInterface * @return string HTML string */ public function drawBackOfficeInputs() { - return $this->facade->getParser()->render('coupon/type-fragments/remove-x-amount.html', [ + return $this->facade->getParser()->render('coupon/type-fragments/remove-x.html', [ 'label' => $this->getInputName(), 'fieldName' => self::INPUT_AMOUNT_NAME, 'value' => $this->amount diff --git a/templates/backOffice/default/coupon/type-fragments/remove-x.html b/templates/backOffice/default/coupon/type-fragments/remove-x.html new file mode 100644 index 000000000..3ac1bab7b --- /dev/null +++ b/templates/backOffice/default/coupon/type-fragments/remove-x.html @@ -0,0 +1,4 @@ +
+ + +