From 82d4f2ec48f1b7a25e787c6617c73d7414055f04 Mon Sep 17 00:00:00 2001 From: txp Date: Tue, 19 Oct 2021 13:30:32 +0700 Subject: [PATCH 1/3] Fixed issue html url Liquid template --- view/adminhtml/templates/hook/body.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/adminhtml/templates/hook/body.phtml b/view/adminhtml/templates/hook/body.phtml index f428b05..28849db 100755 --- a/view/adminhtml/templates/hook/body.phtml +++ b/view/adminhtml/templates/hook/body.phtml @@ -44,7 +44,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE getElementHtml() ?> getLabelHtml('', $element->getScopeLabel()) ?> - escapeHtml($note) ?> + getLabelHtml('', $element->getScopeLabel()) ?>
@@ -77,7 +77,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE ' . $element->getElementHtml() . '
' : $element->getElementHtml(); ?> getHintHtml() ?> - escapeHtml($note) ?> +
Date: Mon, 25 Oct 2021 15:29:12 +0700 Subject: [PATCH 2/3] clean code. --- view/adminhtml/templates/hook/body.phtml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/view/adminhtml/templates/hook/body.phtml b/view/adminhtml/templates/hook/body.phtml index 28849db..d4028b3 100755 --- a/view/adminhtml/templates/hook/body.phtml +++ b/view/adminhtml/templates/hook/body.phtml @@ -18,9 +18,12 @@ * @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) * @license https://www.mageplaza.com/LICENSE.txt */ -?> -getElement(); $note = $element->getNote() ? '
' . $element->getNote() . '
' : ''; $elementBeforeLabel = $element->getExtType() == 'checkbox' || $element->getExtType() == 'radio'; @@ -31,16 +34,15 @@ $fieldClass .= ($elementBeforeLabel) ? ' choice' : ''; $fieldClass .= ($addOn) ? ' with-addon' : ''; $fieldClass .= ($element->getRequired()) ? ' _required' : ''; $fieldClass .= ($note) ? ' with-note' : ''; - -$fieldAttributes = $fieldId . ' class="' . $fieldClass . '" ' . $block->getUiId('form-field', $element->getId()); -$modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonEncode($block->getModifier()) : '{}'; +$fieldAttributes = $fieldId . ' class="' . $fieldClass . '" ' . $block->getUiId('form-field', $element->getId()); +$modifiersData = $block->getModifier() ? Data::jsonEncode($block->getModifier()) : '{}'; ?> getNoDisplay()) : ?> getType() == 'hidden') : ?> getElementHtml() ?> - > +
> getElementHtml() ?> getLabelHtml('', $element->getScopeLabel()) ?> @@ -113,7 +115,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
- +
@@ -140,7 +142,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
getShippingAddressAttrCollection() as $attr) : ?> - +
@@ -167,7 +169,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
getShippingAddressAttrCollection() as $attr) : ?> - +
From cd8c5d26d31e1033f3c833d19bf2b3c592906b33 Mon Sep 17 00:00:00 2001 From: shin Date: Wed, 17 Nov 2021 08:36:51 +0700 Subject: [PATCH 3/3] update composer. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 80235c1..dddb0ec 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "liquid/liquid": "^1.4.8" }, "type": "magento2-module", - "version": "4.1.1", + "version": "4.1.2", "license": "proprietary", "authors": [ {