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 @@ +
+ + +